mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-14 19:31:58 +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);
|
Messaging.sendTr(sender, Messages.SKIN_SET, npc.getName(), skinName);
|
||||||
if (npc.isSpawned()) {
|
if (npc.isSpawned()) {
|
||||||
|
|
||||||
SkinnableEntity skinnable = npc.getEntity() instanceof SkinnableEntity ? (SkinnableEntity) npc.getEntity()
|
SkinnableEntity skinnable = npc.getEntity() instanceof SkinnableEntity ? (SkinnableEntity) npc.getEntity()
|
||||||
: null;
|
: null;
|
||||||
if (skinnable != null) {
|
if (skinnable != null) {
|
||||||
|
@ -327,7 +327,7 @@ public class Skin {
|
|||||||
// packet errors that disconnect the client.
|
// packet errors that disconnect the client.
|
||||||
Property current = Iterables.getFirst(profile.getProperties().get("textures"), null);
|
Property current = Iterables.getFirst(profile.getProperties().get("textures"), null);
|
||||||
if (current != null && current.getValue().equals(skinProperty.getValue())
|
if (current != null && current.getValue().equals(skinProperty.getValue())
|
||||||
&& current.getSignature().equals(skinProperty.getSignature())) {
|
&& (current.getSignature() != null && current.getSignature().equals(skinProperty.getSignature()))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user