[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:
LeMagnesium 2016-09-01 11:57:25 +02:00
parent 884c804a7d
commit fc8315b962
No known key found for this signature in database
GPG Key ID: A54DDB5272C51E8B
3 changed files with 12 additions and 2 deletions

View File

@ -183,7 +183,14 @@ local function update_meta(meta, enabled)
default.gui_bg_img..
default.gui_slots..
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
-- so instead we run a minimal version for infotext setting only

View File

@ -35,6 +35,8 @@ local pipes_devicelist = {
"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.
local states = { "on", "off" }

View File

@ -45,7 +45,8 @@ local function set_filter_formspec(data, meta)
"Sequence slots Randomly",
"Sequence slots by Rotation"})..
exmatch_button..
"list[current_player;main;0,4.5;8,4;]"
"list[current_player;main;0,4.5;8,4;]" ..
"listring[]"
end
meta:set_string("formspec", formspec)
end