Skip to content

Commit

Permalink
Merge pull request #67 from Mooy1/main
Browse files Browse the repository at this point in the history
Fix error on startup
  • Loading branch information
TheBusyBiscuit committed Aug 16, 2021
2 parents 99bd18f + e766ee3 commit fc572ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public static <T> void setFieldValue(@Nonnull T object, @Nonnull String field, @
*/
public static @Nonnull Class<?> getOBCClass(@Nonnull String name) throws ClassNotFoundException {
try {
return Class.forName("org.bukkit.craftbukkit." + getVersionSpecificPackage(false) + '.' + name);
return Class.forName("org.bukkit.craftbukkit." + getVersionSpecificPackage(false) + name);
} catch (UnknownServerVersionException e) {
throw new IllegalStateException("No version check should be performed here.", e);
}
Expand Down

0 comments on commit fc572ef

Please sign in to comment.