From 28bd5a9886eb89b395bff0615fb6fcb0821cc58c Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Thu, 31 Dec 2020 21:50:41 +0100 Subject: [PATCH] Small simplification --- init.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 2204548..9c105c7 100644 --- a/init.lua +++ b/init.lua @@ -2197,11 +2197,7 @@ on_receive_fields(function(player, formname, _f) end elseif _f.guide_mode or _f.inv_mode then - if _f.guide_mode then - data.inv_mode = nil - else - data.inv_mode = true - end + data.inv_mode = not _f.guide_mode elseif _f.trash then local inv = player:get_inventory()