Power Pipes now display power stored too
There is now a visual indicator that a pipe will soon explode.
This commit is contained in:
parent
c1089e5e8a
commit
9c0e9205cf
1 changed files with 1 additions and 0 deletions
|
@ -149,6 +149,7 @@ public class PipeTransportPower extends PipeTransport {
|
||||||
if(internalPower[i] > highestPower){
|
if(internalPower[i] > highestPower){
|
||||||
highestPower = internalPower[i];
|
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);
|
displayPower[i] = (short)Math.min(displayPower[i], MAX_DISPLAY);
|
||||||
}
|
}
|
||||||
overload = highestPower > OVERLOAD_LIMIT;
|
overload = highestPower > OVERLOAD_LIMIT;
|
||||||
|
|
Loading…
Reference in a new issue