Skip to content

Commit

Permalink
fix-home-corner-teleport
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4ika committed Feb 18, 2024
1 parent e511219 commit f62e8a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/src/main/java/com/plotsquared/core/plot/Plot.java
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,7 @@ public void getSide(Consumer<Location> result) {
@Deprecated
public Location getHomeSynchronous() {
BlockLoc home = this.getPosition();
if (home == null || home.getX() == 0 && home.getZ() == 0) {
if (home == null) {
return this.getDefaultHomeSynchronous(true);
} else {
Location bottom = this.getBottomAbs();
Expand Down Expand Up @@ -1439,7 +1439,7 @@ public Location getHomeSynchronous() {
*/
public void getHome(final Consumer<Location> result) {
BlockLoc home = this.getPosition();
if (home == null || home.getX() == 0 && home.getZ() == 0) {
if (home == null) {
this.getDefaultHome(result);
} else {
if (!isLoaded()) {
Expand Down

0 comments on commit f62e8a6

Please sign in to comment.