From cbae04d39c3f6eca56e867c49b98c4161b6df651 Mon Sep 17 00:00:00 2001 From: jojo Date: Sat, 2 Jan 2021 15:00:17 +0100 Subject: [PATCH] Hotix Border --- src/de/steamwar/lobby/listener/PlayerMoveListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/lobby/listener/PlayerMoveListener.java b/src/de/steamwar/lobby/listener/PlayerMoveListener.java index 1090740..61592e4 100644 --- a/src/de/steamwar/lobby/listener/PlayerMoveListener.java +++ b/src/de/steamwar/lobby/listener/PlayerMoveListener.java @@ -37,7 +37,7 @@ public class PlayerMoveListener implements Listener { @EventHandler public void handleWorldBorder(PlayerMoveEvent event) { Location to = event.getTo(); - if (to.getY() < Config.BorderMinY) { + if (to.getY() <= Config.BorderMinY) { event.getPlayer().teleport(spawnLocation); } if (!to.toVector().isInAABB(borderMinVector, borderMaxVector)) {