Dont' kick

This commit is contained in:
Adrian Bergqvist 2023-11-29 22:39:50 +01:00
parent 82f5729da4
commit 503cc52dba
No known key found for this signature in database
GPG Key ID: FAE7D8EDE225E686
2 changed files with 6 additions and 5 deletions

View File

@ -38,7 +38,12 @@ public enum VelocityForgeClientConnectionPhase implements ClientConnectionPhase
public void resetConnectionPhase(ConnectedPlayer player) {
RESETTABLE.resetConnectionPhase(player);
}
},
@Override
public boolean consideredComplete() {
return true;
}
},
IN_PROGRESS {
},
RESETTABLE {

View File

@ -53,10 +53,6 @@ public class ForgeLoginSessionHandler implements MinecraftSessionHandler {
@Override
public boolean handle(Disconnect packet) {
if (!serverConnection.getPlayer().getPhase().consideredComplete()) {
serverConnection.getPlayer().handleConnectionException(serverConnection.getServer(), packet, false);
return true;
}
return original.handle(packet);
}