summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2022-01-02 14:01:06 -0600
committercheapie <no-email-for-you@example.com>2022-01-02 14:01:06 -0600
commitda8d9e5dee1fcdba476f8ad4cfc79cb5a4f88a8b (patch)
tree787acaa4b00866f5a10e8e5ea4ddbd042331d47d
parent2ad8e91d9fd3f968106b52f7fcaf2710587974b5 (diff)
downloadmesecons-da8d9e5dee1fcdba476f8ad4cfc79cb5a4f88a8b.tar
mesecons-da8d9e5dee1fcdba476f8ad4cfc79cb5a4f88a8b.tar.gz
mesecons-da8d9e5dee1fcdba476f8ad4cfc79cb5a4f88a8b.tar.bz2
mesecons-da8d9e5dee1fcdba476f8ad4cfc79cb5a4f88a8b.tar.xz
mesecons-da8d9e5dee1fcdba476f8ad4cfc79cb5a4f88a8b.zip
Fix migration of old LuaCs
-rw-r--r--mesecons_luacontroller/init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesecons_luacontroller/init.lua b/mesecons_luacontroller/init.lua
index 669bacb..da38c7f 100644
--- a/mesecons_luacontroller/init.lua
+++ b/mesecons_luacontroller/init.lua
@@ -938,6 +938,7 @@ local function on_receive_fields(pos, form_name, fields, sender)
update_formspec(pos)
else
local tab = meta:get_int("tab")
+ if tab < 1 or tab > 2 then tab = 1 end
if tab == 1 then
--Code tab
if not fields.program then