fix crash causes by take an item from shop to inv

el crash se causa si el item que retiras de la tienda se coloca sobre
otro item que este en tu inventario

este crash no retorna nada en en log

parece un crash de cliente
This commit is contained in:
Freeman 2023-03-12 15:58:38 +01:00
parent 305e26b750
commit d5117240db

@ -173,7 +173,7 @@ local function on_metadata_inventory_move(pos, from_list, from_index, to_list, t
end
local function on_metadata_inventory_take(pos, listname, index, stack, player)
check_empty(pos)
-- check_empty(pos) -- CRASH
core.show_formspec(player:get_player_name(), formspec_prefix..core.pos_to_string(pos), emeraldbank.get_shop_fs(pos, player) )
end