fix converter NPE

This commit is contained in:
Jesse Boyd
2019-04-01 03:19:53 +11:00
parent 04b9b67c9d
commit e396da8ee5

View File

@@ -748,7 +748,7 @@ public final class BukkitLegacyMappings extends LegacyMappings {
} }
} }
} else if (string.matches("^\\d+$")) { } else if (string.matches("^\\d+$")) {
idDataPair = new IdDataPair(Integer.parseInt(parts[0]), 0); idDataPair = new IdDataPair(Integer.parseInt(string), 0);
} }
PlotBlock plotBlock; PlotBlock plotBlock;
if (NEW_STRING_TO_LEGACY_PLOT_BLOCK.keySet().contains(workingString.toLowerCase())) { if (NEW_STRING_TO_LEGACY_PLOT_BLOCK.keySet().contains(workingString.toLowerCase())) {