diff --git a/src/de/steamwar/lobby/listener/EnderPearlListener.java b/src/de/steamwar/lobby/listener/EnderPearlListener.java index aef3fb5..aa5022d 100644 --- a/src/de/steamwar/lobby/listener/EnderPearlListener.java +++ b/src/de/steamwar/lobby/listener/EnderPearlListener.java @@ -70,6 +70,7 @@ public class EnderPearlListener implements Listener { return; if(projectile.getPassenger() == null) return; + Player player = ((Player) projectile.getShooter()).getPlayer(); player.teleport(event.getEntity().getVelocity().subtract(event.getHitBlock().getLocation().toVector()).toLocation(player.getWorld())); }