Formspec bugfixes

This commit is contained in:
Joachim Stolberg 2019-01-15 21:01:24 +01:00
parent 12798bb7d2
commit 1206e5a461
3 changed files with 28 additions and 4 deletions

@ -1,6 +1,21 @@
# Release Notes for ModPack TechPack [techpack]
## V2.00.02 (2019-01-15)
### Additions
- SaferLua: Init parameter to the function Store() added
### Removals
### Changes
### Fixes
- Distributors: Formspec bugfixes
## V2.00.01 (2019-01-13)
### Additions
@ -12,6 +27,7 @@
### Changes
- Grinder: Recipes for clay changed
### Fixes

@ -294,7 +294,11 @@ local function on_receive_fields(pos, formname, fields, player)
filter_settings(pos)
State:state_button_event(pos, fields)
if fields.state_button ~= nil then
State:state_button_event(pos, fields)
else
meta:set_string("formspec", formspec(State, pos, meta))
end
end
-- tubelib command to turn on/off filter channels
@ -310,7 +314,7 @@ local function change_filter_settings(pos, slot, val)
filter_settings(pos)
meta:set_string("formspec", formspec(pos, meta))
meta:set_string("formspec", formspec(State, pos, meta))
return true
end

@ -278,7 +278,11 @@ local function on_receive_fields(pos, formname, fields, player)
filter_settings(pos)
State:state_button_event(pos, fields)
if fields.state_button ~= nil then
State:state_button_event(pos, fields)
else
meta:set_string("formspec", formspec(State, pos, meta))
end
end
-- tubelib command to turn on/off filter channels
@ -294,7 +298,7 @@ local function change_filter_settings(pos, slot, val)
filter_settings(pos)
meta:set_string("formspec", formspec(pos, meta))
meta:set_string("formspec", formspec(State, pos, meta))
return true
end