From e396da8ee5b595e96a7cf56453eca6f824dbf744 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Mon, 1 Apr 2019 03:19:53 +1100 Subject: [PATCH] fix converter NPE --- .../plotsquared/bukkit/util/BukkitLegacyMappings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitLegacyMappings.java b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitLegacyMappings.java index f0f6b24c8..85da1affc 100644 --- a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitLegacyMappings.java +++ b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitLegacyMappings.java @@ -748,7 +748,7 @@ public final class BukkitLegacyMappings extends LegacyMappings { } } } else if (string.matches("^\\d+$")) { - idDataPair = new IdDataPair(Integer.parseInt(parts[0]), 0); + idDataPair = new IdDataPair(Integer.parseInt(string), 0); } PlotBlock plotBlock; if (NEW_STRING_TO_LEGACY_PLOT_BLOCK.keySet().contains(workingString.toLowerCase())) {