mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
fix index
This commit is contained in:
parent
6ebfd426c3
commit
312ad4c48c
@ -34,7 +34,7 @@ import java.util.UUID;
|
||||
/**
|
||||
* PlotSquared API.
|
||||
* <br>
|
||||
* @version API 3.3.1
|
||||
* @version API 3.3.2
|
||||
* <br>
|
||||
* Useful classes:<br>
|
||||
* @see BukkitUtil
|
||||
|
@ -1470,7 +1470,7 @@ public class PS {
|
||||
}
|
||||
String name = areaId.substring(0, i1);
|
||||
String rest = areaId.substring(i1 + 1);
|
||||
int i3 = rest.indexOf("-", i2);
|
||||
int i3 = rest.indexOf("-", i2 - name.length() - 1);
|
||||
PlotId pos1 = PlotId.fromString(rest.substring(0, i3));
|
||||
PlotId pos2 = PlotId.fromString(rest.substring(i3 + 1));
|
||||
if (pos1 == null || pos2 == null || name.isEmpty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user