mirror of
https://github.com/minetest-mods/i3.git
synced 2025-06-13 23:30:34 +02:00
Small simplification
This commit is contained in:
parent
d631c3edc1
commit
28bd5a9886
6
init.lua
6
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user