Fixed reset mechanism

This commit is contained in:
Adrian Bergqvist 2024-01-22 23:57:27 +01:00
parent 7af0f5c880
commit 550328863a
No known key found for this signature in database
GPG Key ID: FAE7D8EDE225E686
2 changed files with 9 additions and 1 deletions

View File

@ -83,11 +83,14 @@ public enum VelocityForgeBackendConnectionPhase implements BackendConnectionPhas
if (clientPhase.getResetType() == VelocityForgeClientConnectionPhase.clientResetType.CRP ||
clientPhase.getResetType() == VelocityForgeClientConnectionPhase.clientResetType.SR) {
clientPhase.resetConnectionPhase(player);
player.getConnection().write(message);
return;
}
//STILL WIP
if (!Ambassador.getInstance().config.isDebugMode()) {
server.disconnect();
return;
}

View File

@ -101,7 +101,12 @@ public enum VelocityForgeClientConnectionPhase implements ClientConnectionPhase
return true;
}
public void complete(ConnectedPlayer player, boolean resettable) { }
@Override
public void complete(ConnectedPlayer player, clientResetType resetType) {
if (Ambassador.getInstance().config.isDebugMode()) {
player.sendMessage(Component.text("Forge -> Vanilla - Not resetting"));
}
}
};