mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-29 12:37:37 +01:00
Fix
This commit is contained in:
parent
b69b6091b6
commit
2a33588a85
@ -406,6 +406,7 @@ public class NPCCommands {
|
||||
continue;
|
||||
Messaging.send(sender, " <e>- <a>" + trait.getName() + "<e>");
|
||||
}
|
||||
npc.getNavigator().setTarget((LivingEntity) sender, false);
|
||||
}
|
||||
|
||||
@Command(
|
||||
|
@ -77,10 +77,10 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder {
|
||||
if (npc == null)
|
||||
return;
|
||||
Navigation navigation = getNavigation();
|
||||
if (!navigation.f() || npc.getNavigator().isNavigating()) {
|
||||
if (!navigation.f()) {
|
||||
navigation.e();
|
||||
moveOnCurrentHeading();
|
||||
} else if (motX != 0 || motZ != 0 || motY != 0) {
|
||||
} else if (!npc.getNavigator().isNavigating() && (motX != 0 || motZ != 0 || motY != 0)) {
|
||||
e(0, 0);// is this necessary? it does gravity/controllable but
|
||||
// sometimes players sink into the ground
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user