From 309eadfd85ce47b4b2deda565eb9a75fdf877d76 Mon Sep 17 00:00:00 2001 From: Yaruma3341 Date: Sat, 1 Feb 2020 18:42:48 +0100 Subject: [PATCH] bugfixes --- src/de/steamwar/lobby/listener/EnderPearlListener.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/de/steamwar/lobby/listener/EnderPearlListener.java b/src/de/steamwar/lobby/listener/EnderPearlListener.java index aa5022d..aef3fb5 100644 --- a/src/de/steamwar/lobby/listener/EnderPearlListener.java +++ b/src/de/steamwar/lobby/listener/EnderPearlListener.java @@ -70,7 +70,6 @@ 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())); }