Print error on placing player

This commit is contained in:
IzzelAliz 2022-07-21 14:04:06 +08:00
parent 9508543842
commit 0d943311fc
No known key found for this signature in database
GPG Key ID: EE50E123A11D8338

View File

@ -122,6 +122,7 @@ public abstract class ServerLoginNetHandlerMixin implements ServerLoginNetHandle
this.server.getPlayerList().placeNewPlayer(this.connection, entity);
}
} catch (Exception exception) {
LOGGER.error("Couldn't place player in world", exception);
TranslatableComponent chatmessage = new TranslatableComponent("multiplayer.disconnect.invalid_player_data");
this.connection.send(new ClientboundDisconnectPacket(chatmessage));