mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-14 01:04:12 +00:00
Rename loadPlugin to registerHandlers in PluginManager
This commit is contained in:
1 parent
f7bc38c7e4
commit
eee22d3e5c
1 file changed
+2
-6
@@ -141,7 +141,7 @@ public class PluginManager {
|
||||
return loadedModules.contains(module);
|
||||
}
|
||||
|
||||
private static void loadPlugin(ForestryPlugin plugin) {
|
||||
private static void registerHandlers(ForestryPlugin plugin) {
|
||||
Proxies.log.fine("Registering Handlers for Plugin: {0}", plugin);
|
||||
|
||||
IGuiHandler guiHandler = plugin.getGuiHandler();
|
||||
@@ -258,14 +258,10 @@ public class PluginManager {
|
||||
|
||||
public static void runPreInit() {
|
||||
stage = Stage.PRE_INIT;
|
||||
for (Module m : loadedModules) {
|
||||
ForestryPlugin plugin = m.instance;
|
||||
loadPlugin(plugin);
|
||||
}
|
||||
|
||||
for (Module m : loadedModules) {
|
||||
ForestryPlugin plugin = m.instance;
|
||||
Proxies.log.fine("Pre-Init Start: {0}", plugin);
|
||||
registerHandlers(plugin);
|
||||
plugin.preInit();
|
||||
plugin.registerItems();
|
||||
if (Module.BUILDCRAFT_STATEMENTS.isEnabled()) {
|
||||
|
||||
Reference in new issue
Block a user