mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 16:28:00 +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);
|
Pony player = getRecipient(sender);
|
||||||
if (player == null) {
|
if (player == null) {
|
||||||
Unicopia.LOGGER.warn("Skipping capabilities for unknown player " + playerId.toString());
|
Unicopia.LOGGER.warn("Skipping capabilities for unknown player " + playerId.toString());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (compoundTag.isEmpty()) {
|
if (compoundTag.isEmpty()) {
|
||||||
player.setSpecies(newRace);
|
player.setSpecies(newRace);
|
||||||
|
|
Loading…
Reference in a new issue