Fix condition negation

This commit is contained in:
fullwall 2020-06-29 23:09:18 +08:00
parent 79eab9135b
commit 82bdbe31c1

View File

@ -130,7 +130,7 @@ public class Poses extends Trait {
if (!hasPose(defaultPose))
return;
if (!npc.getNavigator().isNavigating()
&& (!npc.hasTrait(LookClose.class) || npc.getTrait(LookClose.class).canSeeTarget())) {
&& (!npc.hasTrait(LookClose.class) || !npc.getTrait(LookClose.class).canSeeTarget())) {
assumePose(defaultPose);
}
}