fix #54
This commit is contained in:
@@ -133,7 +133,12 @@ public class NewChunks extends Module {
|
||||
|
||||
if (!newChunks.contains(pos) && mc.world.getChunkManager().getChunk(packet.getX(), packet.getZ()) == null) {
|
||||
WorldChunk chunk = new WorldChunk(mc.world, pos, null);
|
||||
chunk.loadFromPacket(null, packet.getReadBuffer(), new NbtCompound(), packet.getVerticalStripBitmask());
|
||||
try {
|
||||
chunk.loadFromPacket(null, packet.getReadBuffer(), new NbtCompound(), packet.getVerticalStripBitmask());
|
||||
} catch (ArrayIndexOutOfBoundsException e) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
for (int x = 0; x < 16; x++) {
|
||||
for (int y = 0; y < mc.world.getHeight(); y++) {
|
||||
|
||||
Reference in New Issue
Block a user