diff --git a/src/de/steamwar/lobby/listener/EnderPearlListener.java b/src/de/steamwar/lobby/listener/EnderPearlListener.java index 19ad578..71126da 100644 --- a/src/de/steamwar/lobby/listener/EnderPearlListener.java +++ b/src/de/steamwar/lobby/listener/EnderPearlListener.java @@ -68,6 +68,9 @@ public class EnderPearlListener implements Listener { return; if(!(projectile.getShooter() instanceof Player)) return; + if(projectile.getPassenger() == null) + return; + Player player = ((Player) projectile.getShooter()).getPlayer(); player.teleport(event.getHitBlock().getLocation().add(0.0D, 1.0D, 0.0D)); }