Debug message for arrayoutofbounds

Dieser Commit ist enthalten in:
MattBDev 2020-01-03 16:51:23 -05:00
Ursprung 05760c49cd
Commit 0bf6cfad8d

Datei anzeigen

@ -1,5 +1,6 @@
package com.boydti.fawe.beta;
import com.boydti.fawe.Fawe;
import com.boydti.fawe.FaweCache;
import com.boydti.fawe.beta.implementation.processors.EmptyBatchProcessor;
import com.boydti.fawe.beta.implementation.processors.MultiBatchProcessor;
@ -65,12 +66,18 @@ public interface IBatchProcessor {
}
}
}
int layer = (minY - 15) >> 4;
while (layer < (maxY + 15) >> 4) {
if (set.hasSection(layer)) {
return true;
try {
int layer = (minY - 15) >> 4;
while (layer < (maxY + 15) >> 4) {
if (set.hasSection(layer)) {
return true;
}
layer++;
}
layer++;
} catch (ArrayIndexOutOfBoundsException exception) {
Fawe.imp().debug("minY = " + minY);
Fawe.imp().debug("layer = " + ((minY - 15) >> 4));
exception.printStackTrace();
}
return false;
}