mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 20:03:45 +01:00
Fix missing placement sound of last ladder place
This commit is contained in:
parent
4157d52811
commit
4b4520156d
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user