Browse Source

mob desync issue

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
bb4c1d48a4
  1. 3
      src/engine/objects/Mob.java

3
src/engine/objects/Mob.java

@ -871,7 +871,8 @@ public class Mob extends AbstractIntelligenceAgent {
Vector3fImmutable newLoc = this.getMovementLoc(); Vector3fImmutable newLoc = this.getMovementLoc();
if (newLoc.equals(this.getEndLoc())) { //if (newLoc.equals(this.getEndLoc())) {
if(newLoc.distanceSquared(this.getEndLoc()) < 4){
this.stopMovement(newLoc); this.stopMovement(newLoc);
this.region = AbstractWorldObject.GetRegionByWorldObject(this); this.region = AbstractWorldObject.GetRegionByWorldObject(this);
return; return;

Loading…
Cancel
Save