forked from VoxeLibre/VoxeLibre
Fix place sound played when vines placement failed
This commit is contained in:
parent
524c526ba6
commit
e75f08f1db
|
@ -1511,7 +1511,7 @@ minetest.register_node("mcl_core:vine", {
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
local idef = itemstack:get_definition()
|
local idef = itemstack:get_definition()
|
||||||
local success = minetest.item_place_node(itemstack, placer, pointed_thing)
|
local itemstack, success = minetest.item_place_node(itemstack, placer, pointed_thing)
|
||||||
|
|
||||||
if success then
|
if success then
|
||||||
if idef.sounds and idef.sounds.place then
|
if idef.sounds and idef.sounds.place then
|
||||||
|
|
Loading…
Reference in New Issue