mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-29 18:43:53 +01:00
potential crash position fixed
This commit is contained in:
parent
82f5e49977
commit
38f78f49a7
@ -41,7 +41,7 @@ local function formspec(state, rules, endless)
|
||||
default.gui_slots..
|
||||
"label[0,0;Number(s)]label[2.1,0;Command]label[6.4,0;Offset/s]"}
|
||||
|
||||
for idx, rule in ipairs(rules) do
|
||||
for idx, rule in ipairs(rules or {}) do
|
||||
tbl[#tbl+1] = "field[0.2,"..(-0.2+idx)..";2,1;num"..idx..";;"..(rule.num or "").."]"
|
||||
tbl[#tbl+1] = "dropdown[2,"..(-0.4+idx)..";3.9,1;act"..idx..";"..sAction..";"..(rule.act or "").."]"
|
||||
tbl[#tbl+1] = "field[6.2,"..(-0.2+idx)..";2,1;offs"..idx..";;"..(rule.offs or "").."]"
|
||||
|
@ -28,7 +28,7 @@ local function formspec(state, rules, endless)
|
||||
default.gui_slots..
|
||||
"label[0,0;Number(s)]label[2.1,0;Command]label[6.4,0;Offset/s]"}
|
||||
|
||||
for idx, rule in ipairs(rules) do
|
||||
for idx, rule in ipairs(rules or {}) do
|
||||
tbl[#tbl+1] = "field[0.2,"..(-0.2+idx)..";2,1;num"..idx..";;"..(rule.num or "").."]"
|
||||
tbl[#tbl+1] = "dropdown[2,"..(-0.4+idx)..";3.9,1;act"..idx..";"..sAction..";"..(rule.act or "").."]"
|
||||
tbl[#tbl+1] = "field[6.2,"..(-0.2+idx)..";2,1;offs"..idx..";;"..(rule.offs or "").."]"
|
||||
|
Loading…
Reference in New Issue
Block a user