From 819855d78fc7a2e4c2ce0f368f00c08aa6135310 Mon Sep 17 00:00:00 2001 From: jojo Date: Sun, 10 Jan 2021 03:32:32 +0100 Subject: [PATCH] Fix PlayerMoveListener --- 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 b41edab..2ef7dcb 100644 --- a/src/de/steamwar/lobby/listener/PlayerMoveListener.java +++ b/src/de/steamwar/lobby/listener/PlayerMoveListener.java @@ -41,7 +41,7 @@ public class PlayerMoveListener implements Listener { event.getPlayer().teleport(spawnLocation); return; } - if (event.getFrom().toVector().isInAABB(borderMinVector, borderMaxVector)) { + if (!event.getFrom().toVector().isInAABB(borderMinVector, borderMaxVector)) { event.getPlayer().teleport(spawnLocation); return; }