mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-02-02 12:51:22 +01:00
Fix issue with biomes on chunks, #125
This commit is contained in:
parent
ef6214a442
commit
5582556d8a
@ -30,7 +30,7 @@ public class NetUtil {
|
||||
}
|
||||
}
|
||||
|
||||
if(fullChunk) {
|
||||
if(fullChunk && column.getBiomeData() != null) {
|
||||
out.writeBytes(column.getBiomeData());
|
||||
}
|
||||
|
||||
@ -103,7 +103,8 @@ public class NetUtil {
|
||||
}
|
||||
|
||||
byte biomeData[] = null;
|
||||
if(isFullChunk) {
|
||||
if(isFullChunk && (pos + 256 <= input.length)) {
|
||||
|
||||
biomeData = new byte[256];
|
||||
System.arraycopy(input, pos, biomeData, 0, biomeData.length);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user