mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-03-10 22:03:57 +01:00
Fixed ArrayIndexOutofBounds on translateTempSpawn()
This commit is contained in:
parent
ad47ce7d1b
commit
a97b6f80d2
@ -201,10 +201,9 @@ public class MVWorld {
|
||||
int[] coords = new int[3];
|
||||
try {
|
||||
for (int i = 0; i < 3; i++) {
|
||||
|
||||
coords[i] = Integer.parseInt(coordsString[i]);
|
||||
}
|
||||
this.setSpawn(new Location(this.getCBWorld(), coords[0], coords[2], coords[3]));
|
||||
this.setSpawn(new Location(this.getCBWorld(), coords[0], coords[1], coords[2]));
|
||||
} catch (NumberFormatException e) {
|
||||
this.plugin.log(Level.WARNING, "A MV1 spawn value was found, but it could not be migrated. Format Error. Sorry.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user