From 0bfdb18c04fca33bc6f85f6fa0283e14c794b8a5 Mon Sep 17 00:00:00 2001 From: Max Qian Date: Sun, 31 Jul 2016 23:59:56 -0700 Subject: [PATCH] Fix problem where end-like portals don't teleport you until you hit the bottom --- src/com/sekwah/advancedportals/portals/Portal.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/sekwah/advancedportals/portals/Portal.java b/src/com/sekwah/advancedportals/portals/Portal.java index f4419910..942a3a43 100644 --- a/src/com/sekwah/advancedportals/portals/Portal.java +++ b/src/com/sekwah/advancedportals/portals/Portal.java @@ -521,7 +521,7 @@ public class Portal { if (!portalsActive) return false; if (loc.getWorld() != null && portal.worldName.equals(loc.getWorld().getName())) - if ((portal.pos1.getX() + 1 + additionalArea) >= loc.getX() && (portal.pos1.getY() + additionalArea) >= loc.getY() && (portal.pos1.getZ() + 1 + additionalArea) >= loc.getZ()) + if ((portal.pos1.getX() + 1 + additionalArea) >= loc.getX() && (portal.pos1.getY() + 1 + additionalArea) > loc.getY() && (portal.pos1.getZ() + 1 + additionalArea) >= loc.getZ()) if (portal.pos2.getX() - additionalArea <= loc.getX() && portal.pos2.getY() - additionalArea <= loc.getY() && portal.pos2.getZ() - additionalArea <= loc.getZ()) return true; return false;