aboutsummaryrefslogtreecommitdiff
path: root/fabric/src/main/java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2021-10-22 01:40:06 +0800
committershedaniel <daniel@shedaniel.me>2021-10-22 01:55:30 +0800
commitc8f1c10e6c661ecf949ab29e0e8efeaa13324670 (patch)
tree4628eb7559a385d00f62e2f6eee9b2a9d8c59f00 /fabric/src/main/java
parent62045c9cc0416557e6b57b6f4101b98a0da02dde (diff)
downloadRoughlyEnoughItems-c8f1c10e6c661ecf949ab29e0e8efeaa13324670.tar.gz
RoughlyEnoughItems-c8f1c10e6c661ecf949ab29e0e8efeaa13324670.tar.bz2
RoughlyEnoughItems-c8f1c10e6c661ecf949ab29e0e8efeaa13324670.zip
Add Performance Analysis
Diffstat (limited to 'fabric/src/main/java')
-rw-r--r--fabric/src/main/java/me/shedaniel/rei/fabric/PluginDetectorImpl.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/fabric/src/main/java/me/shedaniel/rei/fabric/PluginDetectorImpl.java b/fabric/src/main/java/me/shedaniel/rei/fabric/PluginDetectorImpl.java
index c44ae6a06..711437449 100644
--- a/fabric/src/main/java/me/shedaniel/rei/fabric/PluginDetectorImpl.java
+++ b/fabric/src/main/java/me/shedaniel/rei/fabric/PluginDetectorImpl.java
@@ -80,7 +80,8 @@ public class PluginDetectorImpl {
} catch (Throwable t) {
Throwable throwable = t;
while (throwable != null) {
- if (throwable.getMessage() != null && throwable.getMessage().contains("environment type SERVER") && !RoughlyEnoughItemsInitializer.isClient()) continue out;
+ if (throwable.getMessage() != null && throwable.getMessage().contains("environment type SERVER") && !RoughlyEnoughItemsInitializer.isClient())
+ continue out;
throwable = throwable.getCause();
}
String error = "Could not create REI Plugin [" + getSimpleName(pluginClass) + "] due to errors, provided by '" + container.getProvider().getMetadata().getId() + "'!";
@@ -98,12 +99,10 @@ public class PluginDetectorImpl {
public static void detectServerPlugins() {
loadPlugin(REIServerPlugin.class, ((PluginView<REIServerPlugin>) PluginManager.getServerInstance())::registerPlugin);
- if (FabricLoader.getInstance().isModLoaded("libblockattributes-fluids")) {
- try {
- PluginView.getServerInstance().registerPlugin((REIServerPlugin) Class.forName("me.shedaniel.rei.impl.common.compat.FabricFluidAPISupportPlugin").getConstructor().newInstance());
- } catch (Throwable throwable) {
- throwable.printStackTrace();
- }
+ try {
+ PluginView.getServerInstance().registerPlugin((REIServerPlugin) Class.forName("me.shedaniel.rei.impl.common.compat.FabricFluidAPISupportPlugin").getConstructor().newInstance());
+ } catch (Throwable throwable) {
+ throwable.printStackTrace();
}
}