diff --git a/src/de/steamwar/lobby/listener/EnderPearlListener.java b/src/de/steamwar/lobby/listener/EnderPearlListener.java index 103b70f..35745d9 100644 --- a/src/de/steamwar/lobby/listener/EnderPearlListener.java +++ b/src/de/steamwar/lobby/listener/EnderPearlListener.java @@ -59,7 +59,7 @@ public class EnderPearlListener implements Listener { @EventHandler(priority = EventPriority.NORMAL) public void handlePlayerTeleport(PlayerTeleportEvent event) { if(event.getCause() != PlayerTeleportEvent.TeleportCause.ENDER_PEARL) return; - if(event.getPlayer().isOnGround()/*event.getTo().distance(event.getPlayer().getLocation()) > 0*/) return; + if(event.getPlayer().isInsideVehicle()/*event.getTo().distance(event.getPlayer().getLocation()) > 0*/) return; event.setCancelled(true); }