mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Fixed infinite loop causing massive CPU usage
This commit is contained in:
parent
7e7fc89e81
commit
86539c1758
@ -70,14 +70,12 @@ public interface IBatchProcessor {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
int layer = (minY - 15) >> 4;
|
int layer = (minY - 15) >> 4;
|
||||||
Fawe.imp().debug("layer: " + layer + " < " +((maxY + 15) >> 4));
|
|
||||||
while (layer < (maxY + 15) >> 4) {
|
while (layer < (maxY + 15) >> 4) {
|
||||||
if (layer > -1) {
|
if (layer >= -1) {
|
||||||
if (set.hasSection(layer)) {
|
if (set.hasSection(layer)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
layer++;
|
layer++;
|
||||||
Fawe.imp().debug("layer++ : " + layer);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (ArrayIndexOutOfBoundsException exception) {
|
} catch (ArrayIndexOutOfBoundsException exception) {
|
||||||
|
Loading…
Reference in New Issue
Block a user