Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-08 17:20:24 +01:00
Don't unload the chunks twice (#350)
Dieser Commit ist enthalten in:
Ursprung
d11c18c024
Commit
1c9229a2fc
@ -128,15 +128,11 @@ public class ChunkType extends PartialType<Chunk, ClientChunks> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void write(ByteBuf output, ClientChunks param, Chunk chunk) throws Exception {
|
public void write(ByteBuf output, ClientChunks param, Chunk chunk) throws Exception {
|
||||||
if (chunk.isUnloadPacket()) {
|
if (chunk.isUnloadPacket()) return;
|
||||||
output.clear();
|
|
||||||
Type.VAR_INT.write(output, 0x1D); // Unload packet ID
|
|
||||||
}
|
|
||||||
|
|
||||||
// Write primary info
|
// Write primary info
|
||||||
output.writeInt(chunk.getX());
|
output.writeInt(chunk.getX());
|
||||||
output.writeInt(chunk.getZ());
|
output.writeInt(chunk.getZ());
|
||||||
if (chunk.isUnloadPacket()) return;
|
|
||||||
output.writeByte(chunk.isGroundUp() ? 0x01 : 0x00);
|
output.writeByte(chunk.isGroundUp() ? 0x01 : 0x00);
|
||||||
Type.VAR_INT.write(output, chunk.getPrimaryBitmask());
|
Type.VAR_INT.write(output, chunk.getPrimaryBitmask());
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren