Fixed game breaking power bug

This commit is contained in:
NeverCast 2012-11-17 16:19:35 +13:00
parent fb1e41f4ba
commit 6bc2ae8e14

View file

@ -184,7 +184,7 @@ public class PipeTransportPower extends PipeTransport {
internalPower = internalNextPower;
internalNextPower = next;
for (int i = 0; i < nextPowerQuery.length; i++) {
if (powerQuery[i] == 0.0d) {
if (powerQuery[i] == 0.0d && internalNextPower[i] > 0) {
internalNextPower[i]-=1;
}
}