File tree 1 file changed +13
-10
lines changed
1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -304,18 +304,21 @@ local function onTick(event)
304
304
end
305
305
306
306
local function create_indicator (entity )
307
- local indicator_variant = " "
308
- if entity .type == " splitter" then
309
- if (entity .direction % 4 )== 0 then
310
- indicator_variant = " -wide"
311
- else
312
- indicator_variant = " -tall"
307
+ if draw_terminal_indicator then
308
+ local indicator_variant = " "
309
+ if entity .type == " splitter" then
310
+ if (entity .direction % 4 )== 0 then
311
+ indicator_variant = " -wide"
312
+ else
313
+ indicator_variant = " -tall"
314
+ end
313
315
end
316
+ return entity .surface .create_entity {
317
+ name = " belt-overflow-indicator" .. indicator_variant ,
318
+ position = entity .position
319
+ }
314
320
end
315
- return entity .surface .create_entity {
316
- name = " belt-overflow-indicator" .. indicator_variant ,
317
- position = entity .position
318
- }
321
+ return nil
319
322
end
320
323
321
324
local function check_and_update_entity (args )
You can’t perform that action at this time.
0 commit comments