Fixed MTA telekinetic theatre statue path check

This commit is contained in:
Player Name 2024-06-08 11:55:23 +00:00 committed by Ryan
parent 5f62047aff
commit 2c3b5cb5a4

View file

@ -32,7 +32,7 @@ import content.minigame.mta.MTAZone;
/** /**
* Handles the telekinetic zone. * Handles the telekinetic zone.
* @author Vexia * @author Vexia, Player Name
*/ */
public class TelekineticZone extends MTAZone { public class TelekineticZone extends MTAZone {
@ -302,7 +302,7 @@ public class TelekineticZone extends MTAZone {
} }
Location next = statue.getLocation().transform(dir, 1); Location next = statue.getLocation().transform(dir, 1);
Path path = Pathfinder.find(statue.getLocation(), next); Path path = Pathfinder.find(statue.getLocation(), next);
boolean end = !path.isSuccessful() || path.isMoveNear() || path.getPoints().size() != 1; boolean end = !path.isSuccessful() || path.isMoveNear() || path.getPoints().size() > 2;
if (end) { if (end) {
return true; return true;
} }