mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-07 16:49:11 +00:00
[BUGFIX] Fixed a bug with Plane/Z
This commit is contained in:
@@ -63,7 +63,7 @@ public class Character implements Locatable {
|
|||||||
* @return location
|
* @return location
|
||||||
*/
|
*/
|
||||||
public Tile getLocation() {
|
public Tile getLocation() {
|
||||||
return new Tile(Game.getBaseX() + getX(), Game.getBaseY() + getY());
|
return new Tile(Game.getBaseX() + getX(), Game.getBaseY() + getY(), Game.getPlane());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -115,9 +115,8 @@ public class Character implements Locatable {
|
|||||||
/**
|
/**
|
||||||
* Interacts with this character
|
* Interacts with this character
|
||||||
*
|
*
|
||||||
* @deprecated
|
|
||||||
*
|
|
||||||
* @param i
|
* @param i
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
public void interact(int i) {
|
public void interact(int i) {
|
||||||
Menu.interact(this, i);
|
Menu.interact(this, i);
|
||||||
|
|||||||
@@ -73,7 +73,6 @@ public final class Tile implements TileFlags, Locatable {
|
|||||||
return z;
|
return z;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
@@ -116,6 +115,7 @@ public final class Tile implements TileFlags, Locatable {
|
|||||||
hash = 31 * hash + this.x;
|
hash = 31 * hash + this.x;
|
||||||
hash = 31 * hash + this.y;
|
hash = 31 * hash + this.y;
|
||||||
hash = 31 * hash + this.z;
|
hash = 31 * hash + this.z;
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -139,7 +139,6 @@ public final class Tile implements TileFlags, Locatable {
|
|||||||
* Determines if this tile is reachable
|
* Determines if this tile is reachable
|
||||||
*
|
*
|
||||||
* @param isObject whether this tile is an object tile
|
* @param isObject whether this tile is an object tile
|
||||||
*
|
|
||||||
* @return <code>true</code> if this tile is reachable, otherwise <code>false</code>
|
* @return <code>true</code> if this tile is reachable, otherwise <code>false</code>
|
||||||
*/
|
*/
|
||||||
public boolean isReachable(boolean isObject) {
|
public boolean isReachable(boolean isObject) {
|
||||||
@@ -172,5 +171,4 @@ public final class Tile implements TileFlags, Locatable {
|
|||||||
public Tile getLocation() {
|
public Tile getLocation() {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user