diff --git a/src/engine/mobileAI/BehaviourFiles/PlayerPet.java b/src/engine/mobileAI/BehaviourFiles/PlayerPet.java index 42574107..b60c9cc1 100644 --- a/src/engine/mobileAI/BehaviourFiles/PlayerPet.java +++ b/src/engine/mobileAI/BehaviourFiles/PlayerPet.java @@ -22,7 +22,7 @@ public class PlayerPet { return; } - if(!pet.playerAgroMap.contains(pet.getOwner().getObjectUUID())){ + if(!WorldGrid.getObjectsInRangePartial(pet.loc, MBServerStatics.CHARACTER_LOAD_RANGE,1).contains(pet.getOwner())){ pet.teleport(pet.getOwner().loc); return; }