0
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

View File

@ -1232,9 +1232,9 @@ minetest.register_node("mcl_core:ladder", {
if under.y ~= above.y then if under.y ~= above.y then
return itemstack return itemstack
end end
local idef = itemstack:get_definition()
local success = minetest.item_place_node(itemstack, placer, pointed_thing) local success = minetest.item_place_node(itemstack, placer, pointed_thing)
local idef = itemstack:get_definition()
if success then if success then
if idef.sounds and idef.sounds.place then if idef.sounds and idef.sounds.place then
minetest.sound_play(idef.sounds.place, {pos=above, gain=1}) minetest.sound_play(idef.sounds.place, {pos=above, gain=1})