mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 10:05:12 +01:00
Replaced hardcoded chunk section out of bounds check (#3136)
This commit is contained in:
parent
7698ee7683
commit
464a85c52b
@ -382,7 +382,7 @@ public class WorldPackets {
|
||||
neighbourY = 15;
|
||||
}
|
||||
|
||||
if (ySection == 16 || ySection == -1) continue;
|
||||
if (ySection == chunk.getSections().length || ySection == -1) continue;
|
||||
|
||||
ChunkSection newSection = chunk.getSections()[ySection];
|
||||
if (newSection == null) continue;
|
||||
|
Loading…
Reference in New Issue
Block a user