mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-12-25 14:30:16 +01:00
Reset scrollbar when export's off
This commit is contained in:
parent
2dc89b43f0
commit
639dab4da5
8
init.lua
8
init.lua
@ -1903,8 +1903,16 @@ local function fields(player, _f)
|
|||||||
elseif _f.export_rcp or _f.export_usg then
|
elseif _f.export_rcp or _f.export_usg then
|
||||||
if _f.export_rcp then
|
if _f.export_rcp then
|
||||||
data.export_rcp = not data.export_rcp
|
data.export_rcp = not data.export_rcp
|
||||||
|
|
||||||
|
if not data.export_rcp then
|
||||||
|
data.scrbar_rcp = 1
|
||||||
|
end
|
||||||
else
|
else
|
||||||
data.export_usg = not data.export_usg
|
data.export_usg = not data.export_usg
|
||||||
|
|
||||||
|
if not data.export_usg then
|
||||||
|
data.scrbar_usg = 1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
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