From 97903f3870351f16cc8cf13dc1dba21ec2307dd9 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 10 Apr 2019 11:34:21 +1000 Subject: [PATCH] Fix you are not in a plot area for single plot worlds --- .../plot/object/worlds/SinglePlotAreaManager.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/worlds/SinglePlotAreaManager.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/worlds/SinglePlotAreaManager.java index 7c9f16d70..bb0be73ba 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/worlds/SinglePlotAreaManager.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/worlds/SinglePlotAreaManager.java @@ -70,13 +70,12 @@ public class SinglePlotAreaManager extends DefaultPlotAreaManager { @Override public PlotArea getApplicablePlotArea(Location location) { PlotArea found = super.getApplicablePlotArea(location); - if (found != null) { + if (found != null) return found; - } String world = location.getWorld(); - return isWorld(world) || world.equals("*") ? + return isWorld(world) || world.equals("*") || super.getAllPlotAreas().length == 0 ? area : - super.getApplicablePlotArea(location); + null; } @Override public PlotArea getPlotArea(String world, String id) {