From b56b4577aa3670d68f10f0a09345777091f7f6f7 Mon Sep 17 00:00:00 2001 From: Yaruma3341 Date: Sun, 2 Feb 2020 00:36:11 +0100 Subject: [PATCH] bugfixes --- src/de/steamwar/lobby/listener/EnderPearlListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }