mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-27 02:21:38 +01:00
Fix AIOB exception when placing a block in y=256
This commit is contained in:
parent
82631fc6f8
commit
8155845c90
@ -269,7 +269,7 @@ public class PaletteStorage implements PublicCloneable<PaletteStorage> {
|
||||
8191, 16383, 32767};
|
||||
|
||||
private static void setBlockAt(@NotNull PaletteStorage paletteStorage, int x, int y, int z, short blockId) {
|
||||
if (!MathUtils.isBetween(y, 0, Chunk.CHUNK_SIZE_Y)) {
|
||||
if (!MathUtils.isBetween(y, 0, Chunk.CHUNK_SIZE_Y - 1)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user