@@ -460,20 +460,20 @@ function UpdateStopOutput(trainStop)
460
460
for _ , c in pairs (conditions ) do
461
461
if c .condition and c .condition .first_signal then -- loading without mods can make first signal nil?
462
462
if c .type == " item_count" then
463
- if (c .condition .comparator == " =" and c .condition .constant == 0 ) then -- train expects to be unloaded of each of this item
463
+ if (c .condition .comparator == " =" and c .condition .constant == 0 ) then
464
+ -- train expects to be unloaded of each of this item
464
465
inventory [c .condition .first_signal .name ] = nil
465
- elseif c .condition .comparator == " ≥" then -- train expects to be loaded to x of this item
466
+ elseif c .condition .comparator == " ≥" then
467
+ -- train expects to be loaded to x of this item
466
468
inventory [c .condition .first_signal .name ] = c .condition .constant
467
- elseif c .condition .comparator == " >" then -- train expects to be loaded to x of this item
468
- inventory [c .condition .first_signal .name ] = c .condition .constant + 1
469
469
end
470
470
elseif c .type == " fluid_count" then
471
- if (c .condition .comparator == " =" and c .condition .constant == 0 ) then -- train expects to be unloaded of each of this fluid
471
+ if (c .condition .comparator == " =" and c .condition .constant == 0 ) then
472
+ -- train expects to be unloaded of each of this fluid
472
473
fluidInventory [c .condition .first_signal .name ] = - 1
473
- elseif c .condition .comparator == " ≥" then -- train expects to be loaded to x of this fluid
474
+ elseif c .condition .comparator == " ≥" then
475
+ -- train expects to be loaded to x of this fluid
474
476
fluidInventory [c .condition .first_signal .name ] = c .condition .constant
475
- elseif c .condition .comparator == " >" then -- train expects to be loaded to x of this fluid
476
- fluidInventory [c .condition .first_signal .name ] = c .condition .constant + 1
477
477
end
478
478
end
479
479
end
0 commit comments