diff --git a/releasenotes.md b/releasenotes.md index 1600d43..73d1cdf 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -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 diff --git a/tubelib/distributor.lua b/tubelib/distributor.lua index 6e5c2d2..958ccf6 100644 --- a/tubelib/distributor.lua +++ b/tubelib/distributor.lua @@ -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 diff --git a/tubelib_addons3/distributor.lua b/tubelib_addons3/distributor.lua index d037c0f..bc77499 100644 --- a/tubelib_addons3/distributor.lua +++ b/tubelib_addons3/distributor.lua @@ -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