From 6fe41e90b0a7ce0c206b6e7dc5fb473a9dc3389b Mon Sep 17 00:00:00 2001 From: dzjkb Date: Mon, 15 Jul 2019 18:24:17 +0200 Subject: [PATCH] fix platforms having a 1 block less perimeter because of last commit, oops --- src/main/java/dzjkb/EasyElevator/Platform.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dzjkb/EasyElevator/Platform.java b/src/main/java/dzjkb/EasyElevator/Platform.java index f7901a3..6d7a87f 100644 --- a/src/main/java/dzjkb/EasyElevator/Platform.java +++ b/src/main/java/dzjkb/EasyElevator/Platform.java @@ -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; } }