bugfixes
Dieser Commit ist enthalten in:
Ursprung
c6df7f9363
Commit
320898b28b
@ -68,6 +68,9 @@ public class EnderPearlListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
if(!(projectile.getShooter() instanceof Player))
|
if(!(projectile.getShooter() instanceof Player))
|
||||||
return;
|
return;
|
||||||
|
if(projectile.getPassenger() == null)
|
||||||
|
return;
|
||||||
|
|
||||||
Player player = ((Player) projectile.getShooter()).getPlayer();
|
Player player = ((Player) projectile.getShooter()).getPlayer();
|
||||||
player.teleport(event.getHitBlock().getLocation().add(0.0D, 1.0D, 0.0D));
|
player.teleport(event.getHitBlock().getLocation().add(0.0D, 1.0D, 0.0D));
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren