mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-14 07:01:06 +01:00
Fix missing placement sound of last ladder place
This commit is contained in:
parent
4157d52811
commit
4b4520156d
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue