Fix skylight detection in some chunk packets (threw OOMError)

This commit is contained in:
Jonas Herzig 2017-08-21 15:19:20 +02:00
parent 9d7f06c3b7
commit 843fc20545

View file

@ -242,7 +242,7 @@ public class NetUtil {
public static Column readColumn(byte data[], int x, int z, boolean fullChunk, boolean hasSkylight, int mask, CompoundTag[] tileEntities) throws IOException {
NetInput in = new StreamNetInput(new ByteArrayInputStream(data));
Exception ex = null;
Throwable ex = null;
Column column = null;
try {
Chunk[] chunks = new Chunk[16];
@ -261,7 +261,7 @@ public class NetUtil {
}
column = new Column(x, z, chunks, biomeData, tileEntities);
} catch(Exception e) {
} catch(Throwable e) {
ex = e;
}