Skip to content

Commit 0cc6dce

Browse files
committed
Reduce noise of Paper handling on Spigot
1 parent 1ebdec2 commit 0cc6dce

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

core/src/main/java/nl/pim16aap2/bigDoors/codegeneration/FallbackGeneratorManager.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@ private static String getPaperMappingsVersion()
111111
{
112112
try
113113
{
114-
final Class<?> clz = findClass("io.papermc.paper.ServerBuildInfo").get();
114+
final Class<?> clz = findClass("io.papermc.paper.ServerBuildInfo").setNullable().get();
115+
if (clz == null)
116+
{
117+
return null;
118+
}
115119

116120
final Method instanceGetter = findMethod().inClass(clz).withName("buildInfo").get();
117121
final Method commitGetter = findMethod().inClass(clz).withName("gitCommit").get();

0 commit comments

Comments
 (0)