mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 11:55:38 +01:00
Fix you are not in a plot area for single plot worlds
This commit is contained in:
parent
d571f54c65
commit
97903f3870
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user