mirror of
https://codeberg.org/usrib/emeraldbank.git
synced 2024-08-19 04:44:05 +02:00
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:
parent
305e26b750
commit
d5117240db
2
shop.lua
2
shop.lua
@ -173,7 +173,7 @@ local function on_metadata_inventory_move(pos, from_list, from_index, to_list, t
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function on_metadata_inventory_take(pos, listname, index, stack, player)
|
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) )
|
core.show_formspec(player:get_player_name(), formspec_prefix..core.pos_to_string(pos), emeraldbank.get_shop_fs(pos, player) )
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user