Skip to content

Commit

Permalink
Improved: connectionUpdate method logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram1903 committed May 18, 2024
1 parent 738d35f commit 5b8b245
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ private void connectionUpdate(User user) {
CrashData crashData = crashManager.getCrashData(user.getUUID()).orElse(null);
if (crashData == null) return;

String brand = crashManager.getClientBrand(user.getUUID()).orElse("Unknown Brand");
if (crashData.isKeepAliveConfirmed() && crashData.isTransactionConfirmed()) {
String brand = crashManager.getClientBrand(user.getUUID()).orElse("Unknown Brand");
adventure.sendComponent(crashData.getCrasher(), ComponentCreator.createFailedCrashComponent(crashData, brand, user.getClientVersion()));
}
}
Expand Down

0 comments on commit 5b8b245

Please sign in to comment.