3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-10-08 11:10:06 +02:00

Fix issue with biomes on chunks, #125

Dieser Commit ist enthalten in:
Myles 2016-03-05 22:05:17 +00:00
Ursprung ef6214a442
Commit 5582556d8a

Datei anzeigen

@ -30,7 +30,7 @@ public class NetUtil {
} }
} }
if(fullChunk) { if(fullChunk && column.getBiomeData() != null) {
out.writeBytes(column.getBiomeData()); out.writeBytes(column.getBiomeData());
} }
@ -103,7 +103,8 @@ public class NetUtil {
} }
byte biomeData[] = null; byte biomeData[] = null;
if(isFullChunk) { if(isFullChunk && (pos + 256 <= input.length)) {
biomeData = new byte[256]; biomeData = new byte[256];
System.arraycopy(input, pos, biomeData, 0, biomeData.length); System.arraycopy(input, pos, biomeData, 0, biomeData.length);
} }