mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-21 11:45:19 +01:00
fix-home-corner-teleport
This commit is contained in:
parent
e51121960d
commit
f62e8a6f22
@ -1407,7 +1407,7 @@ public class Plot {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
public Location getHomeSynchronous() {
|
public Location getHomeSynchronous() {
|
||||||
BlockLoc home = this.getPosition();
|
BlockLoc home = this.getPosition();
|
||||||
if (home == null || home.getX() == 0 && home.getZ() == 0) {
|
if (home == null) {
|
||||||
return this.getDefaultHomeSynchronous(true);
|
return this.getDefaultHomeSynchronous(true);
|
||||||
} else {
|
} else {
|
||||||
Location bottom = this.getBottomAbs();
|
Location bottom = this.getBottomAbs();
|
||||||
@ -1439,7 +1439,7 @@ public class Plot {
|
|||||||
*/
|
*/
|
||||||
public void getHome(final Consumer<Location> result) {
|
public void getHome(final Consumer<Location> result) {
|
||||||
BlockLoc home = this.getPosition();
|
BlockLoc home = this.getPosition();
|
||||||
if (home == null || home.getX() == 0 && home.getZ() == 0) {
|
if (home == null) {
|
||||||
this.getDefaultHome(result);
|
this.getDefaultHome(result);
|
||||||
} else {
|
} else {
|
||||||
if (!isLoaded()) {
|
if (!isLoaded()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user