3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 21:10:17 +01:00

Fixed EnderPearls not being limited to the world they were used in. Fixes BUKKIT-658

Dieser Commit ist enthalten in:
EvilSeph 2012-03-08 19:24:43 -05:00
Ursprung 8ecdfe9eed
Commit f26fbc3bf3

Datei anzeigen

@ -36,7 +36,7 @@ public class EntityEnderPearl extends EntityProjectile {
if (this.shooter != null) {
if (this.shooter instanceof EntityPlayer) {
CraftPlayer player = (CraftPlayer) this.shooter.bukkitEntity;
teleport = player.isOnline();
teleport = player.isOnline() && player.getWorld() == getBukkitEntity().getWorld();
if (teleport) {
teleEvent = new PlayerTeleportEvent(player, player.getLocation(), getBukkitEntity().getLocation(), PlayerTeleportEvent.TeleportCause.ENDER_PEARL);