修复了无法从residence迁移tp点的问题

This commit is contained in:
zhangyuheng 2024-06-26 10:03:51 +08:00
parent 2dfbae52cf
commit 8196d6d225

View File

@ -79,7 +79,7 @@ public class ResMigration {
dominionNode.loc2 = new Location(world, Double.parseDouble(loc[3]), Double.parseDouble(loc[4]), Double.parseDouble(loc[5]));
if (res.TPLoc != null) {
String[] tpLocStr = res.TPLoc.split(":");
if (tpLocStr.length == 3) {
if (tpLocStr.length >= 3) {
dominionNode.tpLoc = new Location(world, Double.parseDouble(tpLocStr[0]), Double.parseDouble(tpLocStr[1]), Double.parseDouble(tpLocStr[2]));
}
}