From b7cef82da8a01d0e5ef34554c3b5dfbf745482de Mon Sep 17 00:00:00 2001 From: Thomas S Date: Thu, 10 Aug 2017 05:22:33 +0000 Subject: [PATCH] Fix moreblocks drop problems --- stairs.lua | 1 - stairs_functions.lua | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/stairs.lua b/stairs.lua index 07fc786..1f2e988 100644 --- a/stairs.lua +++ b/stairs.lua @@ -26,5 +26,4 @@ darkage.register_stairs("darkage:stone_brick") darkage.register_stairs("darkage:straw_bale") darkage.register_stairs("darkage:tuff") darkage.register_stairs("darkage:tuff_bricks") -darkage.register_stairs("farming:straw") diff --git a/stairs_functions.lua b/stairs_functions.lua index 9a321b3..88c1cd2 100644 --- a/stairs_functions.lua +++ b/stairs_functions.lua @@ -7,7 +7,10 @@ if minetest.get_modpath("moreblocks") then local mod = "darkage" local node = nodeName:split(":")[2] - stairsplus:register_all(mod, node, nodeName, ndef) + local def = table.copy(ndef) + def.drop = nil + + stairsplus:register_all(mod, node, nodeName, def) end elseif minetest.get_modpath("stairs") then function darkage.register_stairs(nodeName)