Fixed MTA telekinetic theatre statue path check
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user