Skip to content

Commit

Permalink
Further fix...
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Sep 23, 2019
1 parent 023ab5e commit 03f3d1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/src/main/java/net/citizensnpcs/trait/LookClose.java
Expand Up @@ -142,10 +142,10 @@ public void run() {
if (!enabled || !npc.isSpawned() || npc.getNavigator().isNavigating())
return;
// TODO: remove in a later version, defaults weren't saving properly
if (randomPitchRange == null) {
if (randomPitchRange == null || randomPitchRange.length != 2) {
randomPitchRange = new float[] { -10, 0 };
}
if (randomYawRange == null) {
if (randomYawRange == null || randomYawRange.length != 2) {
randomYawRange = new float[] { 0, 360 };
}
npc.getEntity().getLocation(NPC_LOCATION);
Expand Down

0 comments on commit 03f3d1a

Please sign in to comment.