mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
Fix bad getApplicablePlotArea(Location) code
- Fixes #2815 alongside 667098268f
This commit is contained in:
parent
773a993ee1
commit
06bb6856a8
@ -63,7 +63,11 @@ public class DefaultPlotAreaManager implements PlotAreaManager {
|
||||
case 0:
|
||||
return null;
|
||||
case 1:
|
||||
return this.plotAreas[0];
|
||||
return this.plotAreas[0].getWorldHash() == location.getWorld().hashCode()
|
||||
&& this.plotAreas[0].contains(location) && (!this.plotAreaHasCollision
|
||||
|| location.getWorld().equals(this.plotAreas[0].getWorldName())) ?
|
||||
this.plotAreas[0] :
|
||||
null;
|
||||
case 2:
|
||||
case 3:
|
||||
case 4:
|
||||
|
Loading…
Reference in New Issue
Block a user