Use our simple location object when loading a jail, finally resolves #41
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user