mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 07:17:58 +01:00
Fix error when receiving capabilities for an invalid player
This commit is contained in:
parent
1cb6c6ac00
commit
fc8c68c100
1 changed files with 1 additions and 0 deletions
|
@ -55,6 +55,7 @@ public class MsgPlayerCapabilities implements Channel.Packet {
|
|||
Pony player = getRecipient(sender);
|
||||
if (player == null) {
|
||||
Unicopia.LOGGER.warn("Skipping capabilities for unknown player " + playerId.toString());
|
||||
return;
|
||||
}
|
||||
if (compoundTag.isEmpty()) {
|
||||
player.setSpecies(newRace);
|
||||
|
|
Loading…
Reference in a new issue