mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-15 23:10:41 +01:00
add compatibility case for #71
This commit is contained in:
parent
6a9cf6da27
commit
f14faa6680
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user