diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/modules/EnderPearlModule.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/modules/EnderPearlModule.java index 1f4ccb63e..3347736fb 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/modules/EnderPearlModule.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/modules/EnderPearlModule.java @@ -128,11 +128,12 @@ public class EnderPearlModule extends Module return; } - ProjectileSource source = event.getEntity().getShooter(); + Projectile projectile = event.getEntity(); + ProjectileSource source = projectile.getShooter(); - if (_pearls.remove(source) != null) + if (_pearls.remove(source) != null && getGame().isInsideMap(projectile.getLocation())) { - teleport((Player) source, event.getEntity()); + teleport((Player) source, projectile); } }