We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd1bb22 commit dd64534Copy full SHA for dd64534
src/io/totemo/ec/ChunkCount.java
@@ -20,6 +20,11 @@ public ChunkCount(Chunk chunk) {
20
for (Entity entity : chunk.getEntities()) {
21
Location loc = entity.getLocation();
22
int boxIndex = loc.getBlockY() / 16;
23
+ if (boxIndex < 0) {
24
+ boxIndex = 0;
25
+ } else if (boxIndex > 15) {
26
+ boxIndex = 15;
27
+ }
28
getBox(boxIndex).countEntity(entity);
29
}
30
0 commit comments