3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-12-25 15:50:19 +01:00

Add the same check to ClientPlaySessionHandler

Dieser Commit ist enthalten in:
Andrew Steinborn 2018-09-06 16:11:44 -04:00
Ursprung 51a85d372b
Commit 30baee84bd

Datei anzeigen

@ -122,13 +122,17 @@ public class ClientPlaySessionHandler implements MinecraftSessionHandler {
} }
// If we don't want to handle this packet, just forward it on. // If we don't want to handle this packet, just forward it on.
if (player.getConnectedServer().hasCompletedJoin()) {
player.getConnectedServer().getMinecraftConnection().write(packet); player.getConnectedServer().getMinecraftConnection().write(packet);
} }
}
@Override @Override
public void handleUnknown(ByteBuf buf) { public void handleUnknown(ByteBuf buf) {
if (player.getConnectedServer().hasCompletedJoin()) {
player.getConnectedServer().getMinecraftConnection().write(buf.retain()); player.getConnectedServer().getMinecraftConnection().write(buf.retain());
} }
}
@Override @Override
public void disconnected() { public void disconnected() {