Archiviert
13
0
Dieser Commit ist enthalten in:
Yaruma3341 2020-02-01 18:40:54 +01:00
Ursprung 8830592eb9
Commit 5814997763

Datei anzeigen

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