aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsInit.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-02-16 17:52:40 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-02-16 17:52:40 +0800
commit2e0e576b64545cb45a0ab3e0d0fe81cfb7a61307 (patch)
tree33ab48fd72c49fa1b2a78c05b29de67da7ab6064 /src/main/java/me/shedaniel/rei/RoughlyEnoughItemsInit.java
parent074a627663e0150e23d47a87486afb852dd2cfdd (diff)
downloadRoughlyEnoughItems-2.3.0.17.tar.gz
RoughlyEnoughItems-2.3.0.17.tar.bz2
RoughlyEnoughItems-2.3.0.17.zip
Same as v2.3 in Fabricv2.3.0.17
Diffstat (limited to 'src/main/java/me/shedaniel/rei/RoughlyEnoughItemsInit.java')
-rw-r--r--src/main/java/me/shedaniel/rei/RoughlyEnoughItemsInit.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsInit.java b/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsInit.java
new file mode 100644
index 000000000..8459bdb33
--- /dev/null
+++ b/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsInit.java
@@ -0,0 +1,21 @@
+package me.shedaniel.rei;
+
+import me.shedaniel.rei.update.UpdateChecker;
+import org.dimdev.riftloader.listener.InitializationListener;
+
+import java.lang.reflect.InvocationTargetException;
+
+public class RoughlyEnoughItemsInit implements InitializationListener {
+
+ @Override
+ public void onInitialization() {
+ UpdateChecker.onInitialization();
+ try {
+ Class<?> pluginClass = Class.forName("me.shedaniel.rei.RoughlyEnoughItemsPlugin");
+ pluginClass.getMethod("discoverPlugins").invoke(null);
+ } catch (ClassNotFoundException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {
+ e.printStackTrace();
+ }
+ }
+
+}