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); }