mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Fixed MTA telekinetic theatre statue path check
This commit is contained in:
parent
5f62047aff
commit
2c3b5cb5a4
1 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ import content.minigame.mta.MTAZone;
|
|||
|
||||
/**
|
||||
* Handles the telekinetic zone.
|
||||
* @author Vexia
|
||||
* @author Vexia, Player Name
|
||||
*/
|
||||
public class TelekineticZone extends MTAZone {
|
||||
|
||||
|
|
@ -302,7 +302,7 @@ public class TelekineticZone extends MTAZone {
|
|||
}
|
||||
Location next = statue.getLocation().transform(dir, 1);
|
||||
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) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue