summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/bukkit/plugin/PluginDescriptionFile.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java b/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java
index adce0ed1..c29ede77 100644
--- a/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java
+++ b/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java
@@ -1019,11 +1019,7 @@ public final class PluginDescriptionFile {
}
if (map.get("api-version") != null) {
- try {
- apiVersion = map.get("api-version").toString();
- } catch (ClassCastException ex) {
- throw new InvalidDescriptionException(ex, "api-version is of wrong type");
- }
+ apiVersion = map.get("api-version").toString();
}
try {