mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-12 02:21:54 +01:00
Remove redundant try/catch loading api-version
By: md_5 <git@md-5.net>
This commit is contained in:
parent
93510b0edf
commit
335202751d
@ -1019,11 +1019,7 @@ public final class PluginDescriptionFile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (map.get("api-version") != null) {
|
if (map.get("api-version") != null) {
|
||||||
try {
|
apiVersion = map.get("api-version").toString();
|
||||||
apiVersion = map.get("api-version").toString();
|
|
||||||
} catch (ClassCastException ex) {
|
|
||||||
throw new InvalidDescriptionException(ex, "api-version is of wrong type");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user