mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 20:03:45 +01:00
Fix item frame drop too many items after breaking
This commit is contained in:
parent
6901781b49
commit
02a1eb82ad
@ -112,7 +112,7 @@ minetest.register_node("itemframes:frame",{
|
||||
local meta = minetest.get_meta(pos)
|
||||
if clicker:get_player_name() == meta:get_string("owner") then
|
||||
drop_item(pos,node)
|
||||
meta:set_string("item",itemstack:to_string())
|
||||
meta:set_string("item", itemstack:get_name())
|
||||
update_item(pos,node)
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
itemstack:take_item()
|
||||
|
Loading…
Reference in New Issue
Block a user