blob: 8459bdb33891f9228682986c320dd737a97d928c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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();
}
}
}
|