From f14faa668010f2175dfaff8525dbffd25bf90d6e Mon Sep 17 00:00:00 2001 From: Buckaroo Banzai <39065740+BuckarooBanzay@users.noreply.github.com> Date: Tue, 21 Jul 2020 19:46:59 +0200 Subject: [PATCH] add compatibility case for #71 --- technic/machines/supply_converter.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/technic/machines/supply_converter.lua b/technic/machines/supply_converter.lua index 8e66b47..667f683 100644 --- a/technic/machines/supply_converter.lua +++ b/technic/machines/supply_converter.lua @@ -134,7 +134,8 @@ local run = function(pos, node, run_stage) minetest.registered_nodes["technic:supply_converter"].on_construct(pos) enabled = true else - enabled = enabled == "1" + -- compatibility case for #71 + enabled = meta:get_int("enabled") == 1 end enabled = enabled and (meta:get_int("mesecon_mode") == 0 or meta:get_int("mesecon_effect") ~= 0) local demand = enabled and meta:get_int("power") or 0