From fc8c68c100fc3dffe76fc42096dde78210738acf Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 5 Mar 2021 20:08:20 +0200 Subject: [PATCH] Fix error when receiving capabilities for an invalid player --- .../minelittlepony/unicopia/network/MsgPlayerCapabilities.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/minelittlepony/unicopia/network/MsgPlayerCapabilities.java b/src/main/java/com/minelittlepony/unicopia/network/MsgPlayerCapabilities.java index b4a40028..843910f0 100644 --- a/src/main/java/com/minelittlepony/unicopia/network/MsgPlayerCapabilities.java +++ b/src/main/java/com/minelittlepony/unicopia/network/MsgPlayerCapabilities.java @@ -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);