Archiviert
13
0
Dieser Commit ist enthalten in:
Yaruma3341 2020-02-01 18:42:48 +01:00
Ursprung 5814997763
Commit 309eadfd85

Datei anzeigen

@ -70,7 +70,6 @@ public class EnderPearlListener implements Listener {
return; return;
if(projectile.getPassenger() == null) if(projectile.getPassenger() == null)
return; return;
Player player = ((Player) projectile.getShooter()).getPlayer(); Player player = ((Player) projectile.getShooter()).getPlayer();
player.teleport(event.getEntity().getVelocity().subtract(event.getHitBlock().getLocation().toVector()).toLocation(player.getWorld())); player.teleport(event.getEntity().getVelocity().subtract(event.getHitBlock().getLocation().toVector()).toLocation(player.getWorld()));
} }