mirror of
https://github.com/minetest-mods/i3.git
synced 2025-01-13 19:50:31 +01: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
|
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user