Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 00:00:28 +01:00
Remove 1.9 chunk unloading, should fix #38
Dieser Commit ist enthalten in:
Ursprung
fb5dace6a6
Commit
6fe3c15f7d
@ -558,18 +558,18 @@ public class OutgoingTransformer {
|
|||||||
output.writeBoolean(groundUp);
|
output.writeBoolean(groundUp);
|
||||||
|
|
||||||
int bitMask = input.readUnsignedShort();
|
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);
|
int size = PacketUtil.readVarInt(input);
|
||||||
|
|
||||||
byte[] data = new byte[size];
|
byte[] data = new byte[size];
|
||||||
input.readBytes(data);
|
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;
|
boolean sk = false;
|
||||||
if (info.getLastPacket().getClass().getName().endsWith("PacketPlayOutMapChunkBulk")) {
|
if (info.getLastPacket().getClass().getName().endsWith("PacketPlayOutMapChunkBulk")) {
|
||||||
try {
|
try {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren