From 5e2e4a8631c6c2c81bd655056fae77d170388cdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20S=C3=B6derberg?= Date: Tue, 7 Apr 2020 21:43:32 +0200 Subject: [PATCH] Revert testCreate change --- .../plotsquared/bukkit/listeners/EntitySpawnListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/listeners/EntitySpawnListener.java b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/listeners/EntitySpawnListener.java index 5fade4edb..8aa7a16a9 100644 --- a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/listeners/EntitySpawnListener.java +++ b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/listeners/EntitySpawnListener.java @@ -50,7 +50,8 @@ public class EntitySpawnListener implements Listener { public static void testCreate(final Entity entity) { @NotNull World world = entity.getWorld(); - if (!areaName.equals(world.getName())) { + if (areaName == world.getName()) { + } else { areaName = world.getName(); hasPlotArea = PlotSquared.get().hasPlotArea(areaName); }