mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-07 06:06:10 -04:00
Always return the leftover ItemStack for on_place and on_rightclick
This commit is contained in:
parent
e38099225c
commit
71c7e21669
6 changed files with 20 additions and 15 deletions
|
@ -251,8 +251,8 @@ minetest.register_node("flowers:waterlily", {
|
|||
end
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
itemstack:take_item()
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
return itemstack
|
||||
end
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue