mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 19:50:38 +00:00
Fix you are not in a plot area for single plot worlds
This commit is contained in:
parent
d571f54c65
commit
97903f3870
1 changed files with 3 additions and 4 deletions
|
@ -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 a new issue