mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 10:05:12 +01:00
Remove 1.9 chunk unloading, should fix #38
This commit is contained in:
parent
fb5dace6a6
commit
6fe3c15f7d
@ -103,7 +103,7 @@ public class OutgoingTransformer {
|
||||
byte[] b = new byte[input.readableBytes()];
|
||||
input.readBytes(b);
|
||||
// patch books
|
||||
if(name.equals("MC|BOpen")){
|
||||
if (name.equals("MC|BOpen")) {
|
||||
PacketUtil.writeVarInt(0, output);
|
||||
}
|
||||
output.writeBytes(b);
|
||||
@ -558,18 +558,18 @@ public class OutgoingTransformer {
|
||||
output.writeBoolean(groundUp);
|
||||
|
||||
int bitMask = input.readUnsignedShort();
|
||||
|
||||
if (bitMask == 0 && groundUp) {
|
||||
output.clear();
|
||||
PacketUtil.writeVarInt(PacketType.PLAY_UNLOAD_CHUNK.getNewPacketID(), output);
|
||||
output.writeInt(chunkX);
|
||||
output.writeInt(chunkZ);
|
||||
return;
|
||||
}
|
||||
int size = PacketUtil.readVarInt(input);
|
||||
|
||||
byte[] data = new byte[size];
|
||||
input.readBytes(data);
|
||||
// if (bitMask == 0 && groundUp) {
|
||||
// // if 256
|
||||
// output.clear();
|
||||
// PacketUtil.writeVarInt(PacketType.PLAY_UNLOAD_CHUNK.getNewPacketID(), output);
|
||||
// output.writeInt(chunkX);
|
||||
// output.writeInt(chunkZ);
|
||||
// System.out.println("Sending unload chunk " + chunkX + " " + chunkZ + " - " + size + " bulk: " + bulk);
|
||||
// return;
|
||||
// }
|
||||
boolean sk = false;
|
||||
if (info.getLastPacket().getClass().getName().endsWith("PacketPlayOutMapChunkBulk")) {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user