From b2b1c1510af980c173c0192bc33ae89a87ed5e4f Mon Sep 17 00:00:00 2001 From: snowleo Date: Sun, 10 Apr 2011 20:51:39 +0000 Subject: [PATCH] [trunk] change portal exit position for fixed getSavePosition git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1167 e251c2fe-e539-e718-e476-b85c1f46cddb --- Essentials/src/com/earth2me/essentials/NetherPortal.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/NetherPortal.java b/Essentials/src/com/earth2me/essentials/NetherPortal.java index 25ebe5e23..76d75ddaf 100644 --- a/Essentials/src/com/earth2me/essentials/NetherPortal.java +++ b/Essentials/src/com/earth2me/essentials/NetherPortal.java @@ -41,12 +41,12 @@ public class NetherPortal { // portal is in X direction return new Location(block.getWorld(), block.getX() + 1, - block.getY(), block.getZ() + 1.5 - 2 * Math.round(Math.random())); + block.getY(), block.getZ() + 1 - 2 * Math.round(Math.random())); } else { // portal is in Z direction - return new Location(block.getWorld(), block.getX() + 1.5 - 2 * Math.round(Math.random()), + return new Location(block.getWorld(), block.getX() + 1 - 2 * Math.round(Math.random()), block.getY(), block.getZ() + 1); } }