Power Pipes now display power stored too

There is now a visual indicator that a pipe will soon explode.
This commit is contained in:
CovertJaguar 2012-12-14 02:15:26 -08:00
parent c1089e5e8a
commit 9c0e9205cf

View file

@ -149,6 +149,7 @@ public class PipeTransportPower extends PipeTransport {
if(internalPower[i] > highestPower){
highestPower = internalPower[i];
}
displayPower[i] = (short)Math.max(displayPower[i], Math.ceil(internalPower[i] * DISPLAY_POWER_FACTOR));
displayPower[i] = (short)Math.min(displayPower[i], MAX_DISPLAY);
}
overload = highestPower > OVERLOAD_LIMIT;