Content deleted Content added
Added more explainations onto the code itself (Also Title-Cased Titles and bolder warnings) |
m Fixed uranium leak caused by ejecting an empty fuel rod at startup, remove mass uranium leak warning |
||
Line 1: | Line 1: | ||
<br />'''''Warning: automatic reactors that use microcontroller need you to know lua pilot |
<br />'''''Warning: automatic reactors that use microcontroller need you to know lua pilot''''' |
||
''It is recommended to use delay wire auto reactors'' |
''It is recommended to use delay wire auto reactors'' |
||
Line 55: | Line 55: | ||
for i=1, #fuel do |
for i=1, #fuel do |
||
if fuel[i] <= eject_treshold then |
if fuel[i] <= eject_treshold then |
||
-- Don't eject when there no fuel in there |
|||
⚫ | |||
if fuel[i] ~= 0 then |
|||
⚫ | |||
end |
|||
dispenser:Dispense() -- Dispense fresh fuel |
dispenser:Dispense() -- Dispense fresh fuel |
||
wait(1) |
wait(1) |