Skip to content

Commit

Permalink
fix platforms having a 1 block less perimeter because of last commit,…
Browse files Browse the repository at this point in the history
… oops
  • Loading branch information
dzjkb committed Jul 15, 2019
1 parent 87e0a21 commit 6fe41e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/dzjkb/EasyElevator/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public boolean hasPlayer(Player player)
int y = player.getLocation().getBlockY();
int z = player.getLocation().getBlockZ();
if ((y >= this.ymin + 5) || (y <= this.ymax + 2)) {
if (z > this.zmin && z < this.zmax && x > this.xmin && x < this.xmax) {
if (z >= this.zmin && z <= this.zmax && x >= this.xmin && x <= this.xmax) {
return true;
}
}
Expand Down

0 comments on commit 6fe41e9

Please sign in to comment.