mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Debug message for arrayoutofbounds
This commit is contained in:
parent
05760c49cd
commit
0bf6cfad8d
@ -1,5 +1,6 @@
|
|||||||
package com.boydti.fawe.beta;
|
package com.boydti.fawe.beta;
|
||||||
|
|
||||||
|
import com.boydti.fawe.Fawe;
|
||||||
import com.boydti.fawe.FaweCache;
|
import com.boydti.fawe.FaweCache;
|
||||||
import com.boydti.fawe.beta.implementation.processors.EmptyBatchProcessor;
|
import com.boydti.fawe.beta.implementation.processors.EmptyBatchProcessor;
|
||||||
import com.boydti.fawe.beta.implementation.processors.MultiBatchProcessor;
|
import com.boydti.fawe.beta.implementation.processors.MultiBatchProcessor;
|
||||||
@ -65,12 +66,18 @@ public interface IBatchProcessor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int layer = (minY - 15) >> 4;
|
try {
|
||||||
while (layer < (maxY + 15) >> 4) {
|
int layer = (minY - 15) >> 4;
|
||||||
if (set.hasSection(layer)) {
|
while (layer < (maxY + 15) >> 4) {
|
||||||
return true;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user