If the world is null, don't return a string of the location.

This commit is contained in:
graywolf336 2014-07-14 17:09:06 -05:00
parent 34ebc5bc08
commit c7de4364b1

View File

@ -178,6 +178,7 @@ public class Prisoner {
/** Gets the previous location of this player, separated by a comma. */
public String getPreviousLocationString() {
if(previousPosition == null) return "";
else if(previousPosition.getWorld() == null) return "";
else return previousPosition.getWorld().getName() + "," +
previousPosition.getX() + "," +
previousPosition.getY() + "," +