mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 08:29:34 +01:00
Don't take ladder twice when placing
Also don't take ladder when failing to place
This commit is contained in:
parent
74670547ef
commit
7915ca8938
1 changed files with 0 additions and 3 deletions
|
@ -1208,9 +1208,6 @@ minetest.register_node("mcl_core:ladder", {
|
||||||
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})
|
||||||
end
|
end
|
||||||
if not minetest.setting_getbool("creative_mode") then
|
|
||||||
itemstack:take_item()
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in a new issue