counter added
This commit is contained in:
@@ -834,6 +834,8 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
|
||||
if (this.isCasting && this.getObjectType().equals(GameObjectType.PlayerCharacter))
|
||||
return false;
|
||||
|
||||
if(this.getObjectType().equals(GameObjectType.Mob) && ((Mob)this).destination.equals(Vector3fImmutable.ZERO))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1901,5 +1901,7 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed {
|
||||
return toIntExact(this.respawnTime - ((Mob) o).respawnTime);
|
||||
}
|
||||
|
||||
public void setDestination(Vector3fImmutable destination) {MovementUtilities.pathfind(this,destination);}
|
||||
public void setDestination(Vector3fImmutable destination) {
|
||||
MovementUtilities.pathfind(this,destination);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user