Fix anvil duplication glitch

This commit is contained in:
Lizzy Fleckenstein 2021-03-12 15:30:27 +01:00
parent 116e9dbe65
commit eb85a47e5f
Signed by: LizzyFleckenstein03
GPG Key ID: 06927A5199D6C9B2
1 changed files with 5 additions and 5 deletions

View File

@ -319,10 +319,10 @@ local anvildef = {
after_dig_node = function(pos, oldnode, oldmetadata, digger)
local meta = minetest.get_meta(pos)
local meta2 = meta
local meta2 = meta:to_table()
meta:from_table(oldmetadata)
drop_anvil_items(pos, meta)
meta:from_table(meta2:to_table())
meta:from_table(meta2)
end,
allow_metadata_inventory_take = function(pos, listname, index, stack, player)
local name = player:get_player_name()