If the previous position string given is null, ignore it.

This commit is contained in:
graywolf336 2013-12-25 22:06:57 -06:00
parent a72f6c273b
commit 57e4eb6c1e

View File

@ -122,6 +122,8 @@ public class Prisoner {
/** Sets the previous location of this player from a comma separated string. */
public void setPreviousPosition(String location) {
if(location == null) return;
String[] s = location.split(",");
this.previousPosition = new Location(Bukkit.getWorld(s[0]),
Double.valueOf(s[1]),