File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
mods/reactors-warm-up-faster-so-you-don_t-have-to-wait Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
local one_minute = 60 * 60
2
2
3
3
local function tick_reactor (struct )
4
- local entity = struct .entity
5
- local entity_name = entity .name
6
-
7
- if entity .valid == false then
4
+ if struct .entity .valid == false then
8
5
global .structs_count = global .structs_count - 1
9
6
global .structs [struct .unit_number ] = nil
10
7
return
11
8
end
12
9
10
+ local entity = struct .entity
11
+ local entity_name = entity .name
12
+
13
13
if game .tick > struct .tick + one_minute then
14
14
-- game.print('reactor timed out.')
15
15
-- entity.surface.create_entity{
Original file line number Diff line number Diff line change 2
2
"name" : " reactors-warm-up-faster-so-you-don_t-have-to-wait" ,
3
3
"title" : " Reactors warm up faster so you don't have to wait" ,
4
4
"description" : " Reactors use fuel quicker whilst their tempratures are below useful levels." ,
5
- "version" : " 1.0.0 " ,
5
+ "version" : " 1.0.1 " ,
6
6
"author" : " Quezler" ,
7
7
"factorio_version" : " 1.1" ,
8
8
"dependencies" : [
You can’t perform that action at this time.
0 commit comments