diff --git a/enchanting.lua b/enchanting.lua index 1f7b7d7..eed01f3 100644 --- a/enchanting.lua +++ b/enchanting.lua @@ -87,7 +87,7 @@ xdecor.register("enchantment_table", { on_construct = enchanting.construct, on_receive_fields = enchanting.fields, allow_metadata_inventory_put = enchanting.put, - allow_metadata_inventory_move = function(_,_,_,_,_,_,_) return 0 end + allow_metadata_inventory_move = function(...) return 0 end }) function enchanting.register_enchtools(init, m, def) diff --git a/nodes.lua b/nodes.lua index fdcabdf..bcf20cb 100644 --- a/nodes.lua +++ b/nodes.lua @@ -375,7 +375,7 @@ minetest.register_tool("xdecor:hammer", { description = "Hammer", inventory_image = "xdecor_hammer.png", wield_image = "xdecor_hammer.png", - on_use = function(_,_,_) do return end end + on_use = function(...) do return end end }) xdecor.register("ivy", { @@ -485,6 +485,14 @@ xdecor.register("metal_cabinet", { } }) +xdecor.register("moonbrick", { + drawtype = "normal", + description = "Moon Brick", + tiles = {"xdecor_moonbrick.png"}, + groups = {cracky=2}, + sounds = sound.stone +}) + xdecor.register("multishelf", { description = "Multi Shelf", inventory = {size=24}, @@ -544,7 +552,7 @@ xdecor.register("stonepath", { }) local stonish = {"desertstone_tile", "stone_tile", "stone_rune", - "coalstone_tile", "moonbrick", "hard_clay"} + "coalstone_tile", "hard_clay"} for _, t in pairs(stonish) do xdecor.register(t, {