mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-30 13:09:10 +01:00
Merge branch 'master' of https://github.com/CitizensDev/Citizens2
This commit is contained in:
commit
f1a1138538
@ -44,7 +44,6 @@ public abstract class CitizensNPC extends AbstractNPC {
|
||||
|
||||
protected CitizensNPC(int id, String name) {
|
||||
super(id, name);
|
||||
runnables.add(navigator);
|
||||
}
|
||||
|
||||
protected abstract EntityLiving createHandle(Location loc);
|
||||
@ -220,8 +219,10 @@ public abstract class CitizensNPC extends AbstractNPC {
|
||||
public void update() {
|
||||
try {
|
||||
super.update();
|
||||
if (isSpawned())
|
||||
if (isSpawned()) {
|
||||
NMS.trySwim(getHandle());
|
||||
navigator.run();
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
Messaging.logTr(Messages.EXCEPTION_UPDATING_NPC, getId(), ex.getMessage());
|
||||
ex.printStackTrace();
|
||||
|
Loading…
Reference in New Issue
Block a user