diff options
Diffstat (limited to 'forge/src/main/java/me')
| -rw-r--r-- | forge/src/main/java/me/shedaniel/rei/forge/RoughlyEnoughItemsForge.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/forge/src/main/java/me/shedaniel/rei/forge/RoughlyEnoughItemsForge.java b/forge/src/main/java/me/shedaniel/rei/forge/RoughlyEnoughItemsForge.java index 8f67f2bff..e2b13d7bc 100644 --- a/forge/src/main/java/me/shedaniel/rei/forge/RoughlyEnoughItemsForge.java +++ b/forge/src/main/java/me/shedaniel/rei/forge/RoughlyEnoughItemsForge.java @@ -68,6 +68,7 @@ public class RoughlyEnoughItemsForge { .flatMap(info -> info.getMods().stream()) .map(IModInfo::getModId) .collect(Collectors.toList()); + out: for (ModFileScanData.AnnotationData annotation : data.getAnnotations()) { if (annotationType.equals(annotation.annotationType())) { try { @@ -83,6 +84,12 @@ public class RoughlyEnoughItemsForge { }, clazz)); } } catch (Throwable throwable) { + Throwable t = throwable; + while (t != null) { + if (t.getMessage() != null && t.getMessage().contains("invalid dist DEDICATED_SERVER") && !RoughlyEnoughItemsInitializer.isClient()) + continue out; + t = t.getCause(); + } LOGGER.error("Failed to load plugin: " + annotation.memberName(), throwable); } } |
