forked from mrkubax10/industrialtest
Pause smelting in electric furnace if power runs out
This commit is contained in:
parent
6954c97453
commit
bc85a5449d
@ -558,9 +558,6 @@ definition={
|
|||||||
meta:set_int("industrialtest.powerAmount",meta:get_int("industrialtest.powerAmount")-requiredPower)
|
meta:set_int("industrialtest.powerAmount",meta:get_int("industrialtest.powerAmount")-requiredPower)
|
||||||
meta:set_float("srcTime",meta:get_float("srcTime")+elapsed)
|
meta:set_float("srcTime",meta:get_float("srcTime")+elapsed)
|
||||||
shouldRerunTimer=true
|
shouldRerunTimer=true
|
||||||
else
|
|
||||||
meta:set_float("srcTime",0)
|
|
||||||
meta:set_float("maxSrcTime",-1)
|
|
||||||
end
|
end
|
||||||
shouldUpdateFormspec=true
|
shouldUpdateFormspec=true
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user