From 5291f3df2af98435565930d3561c96f9ba20ca18 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Tue, 28 Dec 2021 21:39:40 -0500 Subject: [PATCH] 1.3.3 rc3 --- .../java/net/tylermurphy/hideAndSeek/game/EventListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/tylermurphy/hideAndSeek/game/EventListener.java b/src/main/java/net/tylermurphy/hideAndSeek/game/EventListener.java index 7db663c..0a087e0 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/game/EventListener.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/game/EventListener.java @@ -113,7 +113,7 @@ public class EventListener implements Listener { if(event.getPlayer().hasPermission("hideandseek.leavebounds")) return; if(event.getTo() == null || event.getTo().getWorld() == null) return; if(!event.getTo().getWorld().getName().equals("hideandseek_" + spawnWorld)) return; - if(event.getTo().getBlockX() < saveMinX || event.getTo().getBlockX() > saveMinX || event.getTo().getBlockZ() < saveMinZ || event.getTo().getBlockZ() > saveMaxZ){ + if(event.getTo().getBlockX() < saveMinX || event.getTo().getBlockX() > saveMaxX || event.getTo().getBlockZ() < saveMinZ || event.getTo().getBlockZ() > saveMaxZ){ event.setCancelled(true); } }