From 78b710dc22767c2b04103845f13bb93531d2d0db Mon Sep 17 00:00:00 2001 From: Maxetto Date: Fri, 20 Jan 2017 09:17:00 -0600 Subject: [PATCH] Set PORTAL as an Unsafe Destination --- Essentials/src/com/earth2me/essentials/utils/LocationUtil.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Essentials/src/com/earth2me/essentials/utils/LocationUtil.java b/Essentials/src/com/earth2me/essentials/utils/LocationUtil.java index 0a9e043b9..64d5bb2c6 100644 --- a/Essentials/src/com/earth2me/essentials/utils/LocationUtil.java +++ b/Essentials/src/com/earth2me/essentials/utils/LocationUtil.java @@ -252,6 +252,9 @@ public class LocationUtil { if (below.getType() == Material.BED_BLOCK) { return true; } + if (world.getBlockAt(x, y, z).getType() == Material.PORTAL) { + return true; + } return (!HOLLOW_MATERIALS.contains(world.getBlockAt(x, y, z).getType())) || (!HOLLOW_MATERIALS.contains(world.getBlockAt(x, y + 1, z).getType())); }