counter added

This commit is contained in:
2023-10-26 20:33:22 -05:00
parent 66d5752ca9
commit 51e0098aa0
4 changed files with 10 additions and 2 deletions
@@ -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;
}
+3 -1
View File
@@ -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);
}
}