diff --git a/src/main/java/com/onarandombox/MultiverseNetherPortals/listeners/MVNPEntityListener.java b/src/main/java/com/onarandombox/MultiverseNetherPortals/listeners/MVNPEntityListener.java index 4b7927e..8db94c4 100644 --- a/src/main/java/com/onarandombox/MultiverseNetherPortals/listeners/MVNPEntityListener.java +++ b/src/main/java/com/onarandombox/MultiverseNetherPortals/listeners/MVNPEntityListener.java @@ -331,10 +331,10 @@ public void onEntityPortal(EntityPortalEvent event) { } PortalType type; - if (fromWorld.getEnvironment() == World.Environment.NETHER + if (originalToWorld.getEnvironment() == World.Environment.NETHER || (fromWorld.getEnvironment() == World.Environment.NETHER && originalToWorld.getEnvironment() == World.Environment.NORMAL)) { type = PortalType.NETHER; - } else if (fromWorld.getEnvironment() == World.Environment.THE_END + } else if (originalToWorld.getEnvironment() == World.Environment.THE_END || (fromWorld.getEnvironment() == World.Environment.THE_END && originalToWorld.getEnvironment() == World.Environment.NORMAL)) { type = PortalType.ENDER; } else {