mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-10 17:31:26 +01:00
Null check signature
This commit is contained in:
parent
95261e4548
commit
2dab3d338d
@ -1512,7 +1512,6 @@ public class NPCCommands {
|
||||
}
|
||||
Messaging.sendTr(sender, Messages.SKIN_SET, npc.getName(), skinName);
|
||||
if (npc.isSpawned()) {
|
||||
|
||||
SkinnableEntity skinnable = npc.getEntity() instanceof SkinnableEntity ? (SkinnableEntity) npc.getEntity()
|
||||
: null;
|
||||
if (skinnable != null) {
|
||||
|
@ -327,7 +327,7 @@ public class Skin {
|
||||
// packet errors that disconnect the client.
|
||||
Property current = Iterables.getFirst(profile.getProperties().get("textures"), null);
|
||||
if (current != null && current.getValue().equals(skinProperty.getValue())
|
||||
&& current.getSignature().equals(skinProperty.getSignature())) {
|
||||
&& (current.getSignature() != null && current.getSignature().equals(skinProperty.getSignature()))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user