This commit is contained in:
fullwall 2012-12-05 16:18:42 +08:00
commit f78154321a
1 changed files with 3 additions and 2 deletions

View File

@ -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();