mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-06-21 09:47:44 +02:00
Fix wrong logs in exception(Throwable) (#1784)
This commit is contained in:
@@ -270,7 +270,7 @@ public class ClientConfigSessionHandler implements MinecraftSessionHandler {
|
||||
public void exception(Throwable throwable) {
|
||||
player.disconnect(Component.translatable("velocity.error.player-connection-error", NamedTextColor.RED));
|
||||
if (MinecraftDecoder.DEBUG) {
|
||||
logger.info("Exception while handling plugin message packet for {}", player, throwable);
|
||||
logger.info("Exception while handling packet for {}", player, throwable);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -508,10 +508,9 @@ public class ClientPlaySessionHandler implements MinecraftSessionHandler {
|
||||
|
||||
@Override
|
||||
public void exception(Throwable throwable) {
|
||||
player.disconnect(
|
||||
Component.translatable("velocity.error.player-connection-error", NamedTextColor.RED));
|
||||
player.disconnect(Component.translatable("velocity.error.player-connection-error", NamedTextColor.RED));
|
||||
if (MinecraftDecoder.DEBUG) {
|
||||
logger.info("Exception while handling plugin message packet for {}", player, throwable);
|
||||
logger.info("Exception while handling packet for {}", player, throwable);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user