fixed bug with trebs spamming console

This commit is contained in:
2024-12-28 04:37:36 -06:00
parent daa84a1fef
commit 8890826070
+5
View File
@@ -923,6 +923,11 @@ public class MobAI {
private static void CheckToSendMobHome(Mob mob) {
try {
//trebs dont recall
if(mob.isSiege())
return;
if(mob.BehaviourType.equals(Enum.MobBehaviourType.Pet1)){
if(mob.loc.distanceSquared(mob.getOwner().loc) > 60 * 60)
mob.teleport(mob.getOwner().loc);