Use our simple location object when loading a jail, finally resolves #41

This commit is contained in:
graywolf336
2015-01-27 18:08:44 -06:00
parent d94b12ac40
commit ad57ed767b
6 changed files with 10 additions and 10 deletions

View File

@ -104,8 +104,8 @@ public class Cell {
}
/** Sets the location of the chest. */
public void setChestLocation(Location location) {
this.chest = new SimpleLocation(location);
public void setChestLocation(SimpleLocation simpleLocation) {
this.chest = simpleLocation;
}
/**

View File

@ -21,7 +21,7 @@ public class CreationPlayer {
private double inX, inY, inZ, freeX, freeY, freeZ;
private float inPitch, inYaw, freePitch, freeYaw;
private HashSet<SimpleLocation> signs;
private Location chest;
private SimpleLocation chest;
/**
* Create a new instance of a CreationPlayer, given the name of the jail.
@ -216,12 +216,12 @@ public class CreationPlayer {
}
/** Sets the chest's location, used mainly for cells. */
public void setChestLocation(Location loc) {
public void setChestLocation(SimpleLocation loc) {
this.chest = loc;
}
/** Gets the chest's location. */
public Location getChestLocation() {
public SimpleLocation getChestLocation() {
return this.chest;
}
}