fix: prevent infinite loop in some conditions

This commit is contained in:
Timo Ley 2024-03-26 14:11:50 +01:00
parent 29ae948039
commit 8502c527e3

View file

@ -267,7 +267,11 @@ public class TileLegacyController extends AENetworkPowerTile implements ILocatab
public void removeCPUs() {
boolean changed = false;
while (this.inactiveCPUs > MIN_INACTIVE) {
changed = changed || removeLastIfNotBusy();
if (removeLastIfNotBusy()) {
changed = true;
} else {
break;
}
}
if (changed) {
try {