From 4b4520156dcef1e5bf7d44f51a8736122667f4a5 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 10 Mar 2017 20:32:06 +0100 Subject: [PATCH] Fix missing placement sound of last ladder place --- mods/ITEMS/mcl_core/nodes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_core/nodes.lua b/mods/ITEMS/mcl_core/nodes.lua index 1c9be61c16..554ed0762a 100644 --- a/mods/ITEMS/mcl_core/nodes.lua +++ b/mods/ITEMS/mcl_core/nodes.lua @@ -1232,9 +1232,9 @@ minetest.register_node("mcl_core:ladder", { if under.y ~= above.y then return itemstack end + local idef = itemstack:get_definition() local success = minetest.item_place_node(itemstack, placer, pointed_thing) - local idef = itemstack:get_definition() if success then if idef.sounds and idef.sounds.place then minetest.sound_play(idef.sounds.place, {pos=above, gain=1})