Unlimited Welder Fix

Fixes a bug where welders are infinite use.  With this, the Welder will not turn on unless it has at least 1u of welder fuel.  Previously, it worked on 'not zero', which allowed it to weld endlessly with fractions of 1u inside (as it was not Zero, but could not deduct 1 from it when used).
This commit is contained in:
Matt
2016-02-20 06:33:45 -05:00
parent 31573db289
commit c07dfe5372
+1 -1
View File
@@ -216,7 +216,7 @@
if(prob(5))
remove_fuel(1)
if(get_fuel() == 0)
if(get_fuel() < 1)
setWelding(0)
//I'm not sure what this does. I assume it has to do with starting fires...