mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-04 21:01:02 -05:00
Fix skylight detection in some chunk packets (threw OOMError)
This commit is contained in:
parent
9d7f06c3b7
commit
843fc20545
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue