summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornumber Zero <silverunicorn2011@yandex.ru>2017-03-15 23:23:24 +0300
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-03-15 19:00:22 -0400
commit7d5329834dd749eca2bcc5d07c5cc016bd743a38 (patch)
treebe87385fb6602ef8abcacbefa2fb05ae21a66405
parentae7625d9f7b1ed1e55d6a980680805802b0d5e16 (diff)
Fix supply converter bug
-rw-r--r--technic/machines/supply_converter.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/technic/machines/supply_converter.lua b/technic/machines/supply_converter.lua
index 15c761d..cddd5e4 100644
--- a/technic/machines/supply_converter.lua
+++ b/technic/machines/supply_converter.lua
@@ -64,7 +64,7 @@ local run = function(pos, node)
local machine_name = S("Supply Converter")
local meta = minetest.get_meta(pos)
local enabled = meta:get_int("enabled") ~= 0 and (meta:get_int("mesecon_mode") == 0 or meta:get_int("mesecon_effect") ~= 0)
- local demand = enabled and meta:get_int("power") or 10000
+ local demand = enabled and meta:get_int("power") or 0
local pos_up = {x=pos.x, y=pos.y+1, z=pos.z}
local pos_down = {x=pos.x, y=pos.y-1, z=pos.z}