diff --git a/src/main/java/world/bentobox/bentobox/listeners/NetherPortals.java b/src/main/java/world/bentobox/bentobox/listeners/NetherPortals.java index fbbf6090b..49df94e08 100644 --- a/src/main/java/world/bentobox/bentobox/listeners/NetherPortals.java +++ b/src/main/java/world/bentobox/bentobox/listeners/NetherPortals.java @@ -175,7 +175,7 @@ public class NetherPortals implements Listener { public void onNetherPortalStandardNether(PlayerPortalEvent e) { World fromWorld = e.getFrom().getWorld(); if (e.getCause().equals(TeleportCause.NETHER_PORTAL) - && plugin.getIWM().inWorld(e.getFrom()) + && plugin.getIWM().inWorld(Util.getWorld(fromWorld)) && !plugin.getIWM().isNetherIslands(fromWorld) && fromWorld.getEnvironment().equals(Environment.NETHER) && plugin.getPlayers().isKnown(e.getPlayer().getUniqueId())) { diff --git a/src/main/java/world/bentobox/bentobox/managers/IslandWorldManager.java b/src/main/java/world/bentobox/bentobox/managers/IslandWorldManager.java index 23c240910..ea6d3cf6f 100644 --- a/src/main/java/world/bentobox/bentobox/managers/IslandWorldManager.java +++ b/src/main/java/world/bentobox/bentobox/managers/IslandWorldManager.java @@ -65,11 +65,11 @@ public class IslandWorldManager { } /** - * Checks if a location is in any of the island worlds + * Checks if a location is in any of the island worlds. + * This will be false if the player is in the standard Nether or standard End. * - * @param loc - * - location - * @return true if in a world or false if not + * @param loc - location + * @return true if in a world or false if not. False if in standard Nether or standard End. */ public boolean inWorld(Location loc) { return inWorld(loc.getWorld());