We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ebdec2 commit 0cc6dceCopy full SHA for 0cc6dce
1 file changed
core/src/main/java/nl/pim16aap2/bigDoors/codegeneration/FallbackGeneratorManager.java
@@ -111,7 +111,11 @@ private static String getPaperMappingsVersion()
111
{
112
try
113
114
- final Class<?> clz = findClass("io.papermc.paper.ServerBuildInfo").get();
+ final Class<?> clz = findClass("io.papermc.paper.ServerBuildInfo").setNullable().get();
115
+ if (clz == null)
116
+ {
117
+ return null;
118
+ }
119
120
final Method instanceGetter = findMethod().inClass(clz).withName("buildInfo").get();
121
final Method commitGetter = findMethod().inClass(clz).withName("gitCommit").get();
0 commit comments