mirror of
https://github.com/minetest-mods/i3.git
synced 2024-12-27 03:10:39 +01:00
Fix
This commit is contained in:
parent
ae0e8f4be7
commit
5ac97da404
6
init.lua
6
init.lua
@ -2138,7 +2138,7 @@ on_receive_fields(function(player, formname, _f)
|
|||||||
if _f.quit or formname ~= "" then return false end
|
if _f.quit or formname ~= "" then return false end
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
local data = pdata[name]
|
local data = pdata[name]
|
||||||
local sb_rcp, sb_usg = _f.scrbar_rcp, _f.scrbar_usg
|
local sb_rcp, sb_usg, sb_inv = _f.scrbar_rcp, _f.scrbar_usg, _f.scrbar_inv
|
||||||
|
|
||||||
if _f.cancel then
|
if _f.cancel then
|
||||||
reset_data(data)
|
reset_data(data)
|
||||||
@ -2223,8 +2223,8 @@ on_receive_fields(function(player, formname, _f)
|
|||||||
elseif _f.sort_az or _f.sort_za then
|
elseif _f.sort_az or _f.sort_za then
|
||||||
sort_itemlist(player, _f.sort_az)
|
sort_itemlist(player, _f.sort_az)
|
||||||
|
|
||||||
elseif _f.scrbar_inv then
|
elseif sb_inv and sub(sb_inv, 1, 3) == "CHG" then
|
||||||
data.scrbar_inv = tonumber(match(_f.scrbar_inv, "%d+"))
|
data.scrbar_inv = tonumber(match(sb_inv, "%d+"))
|
||||||
return true
|
return true
|
||||||
|
|
||||||
elseif (sb_rcp and sub(sb_rcp, 1, 3) == "CHG") or (sb_usg and sub(sb_usg, 1, 3) == "CHG") then
|
elseif (sb_rcp and sub(sb_rcp, 1, 3) == "CHG") or (sb_usg and sub(sb_usg, 1, 3) == "CHG") then
|
||||||
|
Loading…
Reference in New Issue
Block a user