Skip to content

Commit

Permalink
Let client disconnect whenever it likes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aizistral committed Aug 5, 2022
1 parent e67034e commit 87f322c
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,4 @@ private void onEvaluateTrustLevel(PlayerChatMessage playerChatMessage, Component
}
}

/**
* @reason Prevent client from disconnecting when chat chain is broken.
* Normal average user will not even understand what happened, so this is absolutely
* useless for them.
* @author Aizistral
*/

@Inject(method = "onChatChainBroken", at = @At("HEAD"), cancellable = true)
private void stopUselessDisconnects(CallbackInfo info) {
info.cancel();
}

}

0 comments on commit 87f322c

Please sign in to comment.