geforkt von Mirrors/Velocity
Add the same check to ClientPlaySessionHandler
Dieser Commit ist enthalten in:
Ursprung
51a85d372b
Commit
30baee84bd
@ -122,12 +122,16 @@ 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.
|
||||||
player.getConnectedServer().getMinecraftConnection().write(packet);
|
if (player.getConnectedServer().hasCompletedJoin()) {
|
||||||
|
player.getConnectedServer().getMinecraftConnection().write(packet);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handleUnknown(ByteBuf buf) {
|
public void handleUnknown(ByteBuf buf) {
|
||||||
player.getConnectedServer().getMinecraftConnection().write(buf.retain());
|
if (player.getConnectedServer().hasCompletedJoin()) {
|
||||||
|
player.getConnectedServer().getMinecraftConnection().write(buf.retain());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren