Small fix

This commit is contained in:
Jean-Patrick Guerrero 2020-12-31 05:07:42 +01:00
parent 9aedeacf6b
commit bf3979cc79

View File

@ -1822,7 +1822,8 @@ trash:set_size("main", 1)
core.register_on_player_inventory_action(function(player, action, inv, info) core.register_on_player_inventory_action(function(player, action, inv, info)
if (info.from_list == "main" and info.to_list == "craft") or if (info.from_list == "main" and info.to_list == "craft") or
(info.from_list == "craft" and info.to_list == "main") then (info.from_list == "craft" and info.to_list == "main") or
(info.from_list == "craftresult" and info.to_list == "main") then
local name = player:get_player_name() local name = player:get_player_name()
local data = pdata[name] local data = pdata[name]
local fs = make_fs(player, data) local fs = make_fs(player, data)