Fix missing placement sound of last ladder place

This commit is contained in:
Wuzzy 2017-03-10 20:32:06 +01:00
parent 4157d52811
commit 4b4520156d

View file

@ -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})