From d6ababec9782d24398df70c830cd5441c0b3fc6e Mon Sep 17 00:00:00 2001 From: Yaruma3341 Date: Sun, 2 Feb 2020 00:34:18 +0100 Subject: [PATCH] bugfixes --- src/de/steamwar/lobby/listener/EnderPearlListener.java | 2 +- src/de/steamwar/lobby/listener/ShieldListener.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/lobby/listener/EnderPearlListener.java b/src/de/steamwar/lobby/listener/EnderPearlListener.java index 8c34c32..103b70f 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.getTo().distance(event.getPlayer().getLocation()) > 0) return; + if(event.getPlayer().isOnGround()/*event.getTo().distance(event.getPlayer().getLocation()) > 0*/) return; event.setCancelled(true); } diff --git a/src/de/steamwar/lobby/listener/ShieldListener.java b/src/de/steamwar/lobby/listener/ShieldListener.java index 41b7411..d3d92b9 100644 --- a/src/de/steamwar/lobby/listener/ShieldListener.java +++ b/src/de/steamwar/lobby/listener/ShieldListener.java @@ -16,7 +16,7 @@ import java.util.Collection; public class ShieldListener implements Listener { - double radius = 2.0D; + double radius = 1.5D; double multiplyer = 1.1D; float height = 1.0F;