Oops, this if statement walked away.

This commit is contained in:
Evert 2018-04-04 21:03:35 +03:00
parent ba9934d225
commit cbefa2c9c1
No known key found for this signature in database
GPG Key ID: 1688DA83D222D0B5

@ -245,7 +245,7 @@ local function melter_node_timer(pos, elapsed)
local mt, t = metal_melter.get_metal_from_stack(input) local mt, t = metal_melter.get_metal_from_stack(input)
if mt then if mt then
local metal_name = fluidity.molten_metals[mt] local metal_name = fluidity.molten_metals[mt]
if metal_name then if metal_name and (metal == "" or metal == metal_name) then
local cnt = metal_melter.spec[t] local cnt = metal_melter.spec[t]
local heat_consume = math.floor(cnt / 2) local heat_consume = math.floor(cnt / 2)
if metal_count + cnt <= metal_melter.max_metal and heat_count >= heat_consume then if metal_count + cnt <= metal_melter.max_metal and heat_count >= heat_consume then