mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 11:44:42 +02:00
Fix exception thrown when plants fake grow at max world height.
This commit is contained in:
@ -82,7 +82,7 @@ public class BitSetChunkStore implements ChunkStore, Serializable {
|
||||
|
||||
private int coordToIndex(int x, int y, int z) {
|
||||
if (x < 0 || x >= 16 || y < 0 || y >= worldHeight || z < 0 || z >= 16)
|
||||
throw new IndexOutOfBoundsException();
|
||||
throw new IndexOutOfBoundsException(String.format("x: %d y: %d z: %d World Height: %d", x, y, z, worldHeight));
|
||||
return (z * 16 + x) + (256 * y);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user