From 4b24440ff34e8e8548a07931197768009b3442c0 Mon Sep 17 00:00:00 2001 From: Alastair Date: Fri, 1 Apr 2016 19:12:36 +0100 Subject: [PATCH] Fixed standing on top of portal and warping --- src/com/sekwah/advancedportals/listeners/Listeners.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/sekwah/advancedportals/listeners/Listeners.java b/src/com/sekwah/advancedportals/listeners/Listeners.java index bd7912bc..6aa3845f 100644 --- a/src/com/sekwah/advancedportals/listeners/Listeners.java +++ b/src/com/sekwah/advancedportals/listeners/Listeners.java @@ -95,7 +95,7 @@ public class Listeners implements Listener { if (loc.getWorld() != null && portal.worldName.equals(loc.getWorld().getName())) { if (portal.trigger.equals(loc.getBlock().getType()) || portal.trigger.equals(eyeLoc.getBlock().getType())) { - if ((portal.pos1.getX() + 1D) >= loc.getX() && (portal.pos1.getY() + 1D) >= loc.getY() && (portal.pos1.getZ() + 1D) >= loc.getZ()) { + if ((portal.pos1.getX() + 1D) >= loc.getX() && (portal.pos1.getY()) >= loc.getY() && (portal.pos1.getZ() + 1D) >= loc.getZ()) { if (portal.pos2.getX() <= loc.getX() && portal.pos2.getY() <= loc.getY() && portal.pos2.getZ() <= loc.getZ()) {