mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-26 09:40:28 +01:00
[pipeworks] Update and fix global variable 'rules'
- Fix global variable 'rules' in devices.lua for #508 - Update inventory elements from pipeworks' upstream repository
This commit is contained in:
parent
884c804a7d
commit
fc8315b962
@ -183,7 +183,14 @@ local function update_meta(meta, enabled)
|
|||||||
default.gui_bg_img..
|
default.gui_bg_img..
|
||||||
default.gui_slots..
|
default.gui_slots..
|
||||||
default.get_hotbar_bg(0,7) ..
|
default.get_hotbar_bg(0,7) ..
|
||||||
"list[current_player;main;0,7;8,4;]")
|
"list[current_player;main;0,7;8,4;]" ..
|
||||||
|
"listring[current_player;main]"..
|
||||||
|
"listring[context;src]" ..
|
||||||
|
"listring[context;dst]" ..
|
||||||
|
"listring[current_player;main]"..
|
||||||
|
"listring[context;recipe]" ..
|
||||||
|
"listring[context;output]"
|
||||||
|
)
|
||||||
|
|
||||||
-- toggling the button doesn't quite call for running a recipe change check
|
-- toggling the button doesn't quite call for running a recipe change check
|
||||||
-- so instead we run a minimal version for infotext setting only
|
-- so instead we run a minimal version for infotext setting only
|
||||||
|
@ -35,6 +35,8 @@ local pipes_devicelist = {
|
|||||||
"storage_tank_10"
|
"storage_tank_10"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local rules = pipeworks.mesecons_rules -- Enough with the undefined global variable // MFF (Mg|01/07/2016 for #68)
|
||||||
|
|
||||||
-- Now define the nodes.
|
-- Now define the nodes.
|
||||||
|
|
||||||
local states = { "on", "off" }
|
local states = { "on", "off" }
|
||||||
|
@ -45,7 +45,8 @@ local function set_filter_formspec(data, meta)
|
|||||||
"Sequence slots Randomly",
|
"Sequence slots Randomly",
|
||||||
"Sequence slots by Rotation"})..
|
"Sequence slots by Rotation"})..
|
||||||
exmatch_button..
|
exmatch_button..
|
||||||
"list[current_player;main;0,4.5;8,4;]"
|
"list[current_player;main;0,4.5;8,4;]" ..
|
||||||
|
"listring[]"
|
||||||
end
|
end
|
||||||
meta:set_string("formspec", formspec)
|
meta:set_string("formspec", formspec)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user