mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-22 21:20:04 +00:00
Updated for latest MW
This commit is contained in:
1 parent
efdebc6fde
commit
2267a1afd4
1 file changed
+3
-1
@@ -162,6 +162,7 @@ public class Packet_Chunks {
|
||||
byte[][] msbArray = new byte[16][];
|
||||
byte[][] lsbArray = new byte[16][];
|
||||
byte[][] metaArray = new byte[16][];
|
||||
byte[][] lightingArray = new byte[16][];
|
||||
|
||||
if (storageArrays != null) {
|
||||
for (ExtendedBlockStorage storage : storageArrays) {
|
||||
@@ -170,10 +171,11 @@ public class Packet_Chunks {
|
||||
lsbArray[y] = storage.getBlockLSBArray();
|
||||
msbArray[y] = (storage.getBlockMSBArray() != null) ? storage.getBlockMSBArray().data : null;
|
||||
metaArray[y] = (storage.getMetadataArray() != null) ? storage.getMetadataArray().data : null;
|
||||
lightingArray[y] = (storage.getBlocklightArray() != null) ? storage.getBlocklightArray().data : null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return new MwChunk(x, z, dim, msbArray, lsbArray, metaArray, blockBiomeArray);
|
||||
return new MwChunk(x, z, dim, msbArray, lsbArray, metaArray, lightingArray, blockBiomeArray);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user