mirror of
https://github.com/sirrobzeroone/elepower.git
synced 2024-12-01 02:53:44 +01:00
oopsie
This commit is contained in:
parent
9d0283d264
commit
b4a29af301
@ -78,7 +78,7 @@ function crafter_timer (pos, elapsed)
|
|||||||
local capacity = ele.helpers.get_node_property(meta, pos, "capacity")
|
local capacity = ele.helpers.get_node_property(meta, pos, "capacity")
|
||||||
local usage = ele.helpers.get_node_property(meta, pos, "usage")
|
local usage = ele.helpers.get_node_property(meta, pos, "usage")
|
||||||
local storage = ele.helpers.get_node_property(meta, pos, "storage")
|
local storage = ele.helpers.get_node_property(meta, pos, "storage")
|
||||||
local speed = ele.helpers.get_node_property(meta, pos, "craft_speed") or 1
|
local speed = ele.helpers.get_node_property(meta, pos, "craft_speed")
|
||||||
local time = meta:get_int("src_time")
|
local time = meta:get_int("src_time")
|
||||||
local state = meta:get_int("state")
|
local state = meta:get_int("state")
|
||||||
local status = "Idle"
|
local status = "Idle"
|
||||||
@ -90,6 +90,9 @@ function crafter_timer (pos, elapsed)
|
|||||||
|
|
||||||
local pow_buffer = {capacity = capacity, storage = storage, usage = 0}
|
local pow_buffer = {capacity = capacity, storage = storage, usage = 0}
|
||||||
|
|
||||||
|
-- Default craft speed is 1
|
||||||
|
if speed == 0 then speed = 1 end
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
if not is_enabled then
|
if not is_enabled then
|
||||||
time = 0
|
time = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user