diff --git a/vane-portals/src/main/java/org/oddlama/vane/portals/PortalTeleporter.java b/vane-portals/src/main/java/org/oddlama/vane/portals/PortalTeleporter.java index 4b898f4d6..cab49fe2f 100644 --- a/vane-portals/src/main/java/org/oddlama/vane/portals/PortalTeleporter.java +++ b/vane-portals/src/main/java/org/oddlama/vane/portals/PortalTeleporter.java @@ -181,7 +181,7 @@ public void on_entity_move(final EntityMoveEvent event) { entities_portalling.put(entity_id, event.getFrom().clone()); } else if (!get_module().portal_area_materials.contains(block.getType())) { // At least 2 blocks away and outside of portal area → finish portalling. - if (event.getFrom().distance(loc) > 2.0) { + if (loc.getWorld() == event.getFrom().getWorld() && event.getFrom().distance(loc) > 2.0) { entities_portalling.remove(entity_id); } }