If the world is null, don't return a string of the location.
This commit is contained in:
parent
34ebc5bc08
commit
c7de4364b1
@ -178,6 +178,7 @@ public class Prisoner {
|
|||||||
/** Gets the previous location of this player, separated by a comma. */
|
/** Gets the previous location of this player, separated by a comma. */
|
||||||
public String getPreviousLocationString() {
|
public String getPreviousLocationString() {
|
||||||
if(previousPosition == null) return "";
|
if(previousPosition == null) return "";
|
||||||
|
else if(previousPosition.getWorld() == null) return "";
|
||||||
else return previousPosition.getWorld().getName() + "," +
|
else return previousPosition.getWorld().getName() + "," +
|
||||||
previousPosition.getX() + "," +
|
previousPosition.getX() + "," +
|
||||||
previousPosition.getY() + "," +
|
previousPosition.getY() + "," +
|
||||||
|
Loading…
Reference in New Issue
Block a user