Print error on placing player
This commit is contained in:
parent
9508543842
commit
0d943311fc
|
@ -122,6 +122,7 @@ public abstract class ServerLoginNetHandlerMixin implements ServerLoginNetHandle
|
||||||
this.server.getPlayerList().placeNewPlayer(this.connection, entity);
|
this.server.getPlayerList().placeNewPlayer(this.connection, entity);
|
||||||
}
|
}
|
||||||
} catch (Exception exception) {
|
} catch (Exception exception) {
|
||||||
|
LOGGER.error("Couldn't place player in world", exception);
|
||||||
TranslatableComponent chatmessage = new TranslatableComponent("multiplayer.disconnect.invalid_player_data");
|
TranslatableComponent chatmessage = new TranslatableComponent("multiplayer.disconnect.invalid_player_data");
|
||||||
|
|
||||||
this.connection.send(new ClientboundDisconnectPacket(chatmessage));
|
this.connection.send(new ClientboundDisconnectPacket(chatmessage));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user