Small simplification

This commit is contained in:
Jean-Patrick Guerrero 2020-12-31 21:50:41 +01:00
parent d631c3edc1
commit 28bd5a9886

View File

@ -2197,11 +2197,7 @@ on_receive_fields(function(player, formname, _f)
end end
elseif _f.guide_mode or _f.inv_mode then elseif _f.guide_mode or _f.inv_mode then
if _f.guide_mode then data.inv_mode = not _f.guide_mode
data.inv_mode = nil
else
data.inv_mode = true
end
elseif _f.trash then elseif _f.trash then
local inv = player:get_inventory() local inv = player:get_inventory()