diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-02-16 17:52:40 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-02-16 17:52:40 +0800 |
| commit | 2e0e576b64545cb45a0ab3e0d0fe81cfb7a61307 (patch) | |
| tree | 33ab48fd72c49fa1b2a78c05b29de67da7ab6064 /src/main/java/me/shedaniel/rei/RoughlyEnoughItemsPlugin.java | |
| parent | 074a627663e0150e23d47a87486afb852dd2cfdd (diff) | |
| download | RoughlyEnoughItems-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/RoughlyEnoughItemsPlugin.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/RoughlyEnoughItemsPlugin.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsPlugin.java b/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsPlugin.java index ad3c15ba6..2bb33bfc4 100644 --- a/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsPlugin.java +++ b/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsPlugin.java @@ -35,6 +35,7 @@ public class RoughlyEnoughItemsPlugin { public static IRecipePlugin registerPlugin(String resourceLocation, IRecipePlugin plugin) { plugins.put(resourceLocation, plugin); RoughlyEnoughItemsPlugin.LOGGER.info("REI: Registered Plugin from %s by %s.", resourceLocation.toString(), plugin.getClass().getSimpleName()); + plugin.onFirstLoad(RoughlyEnoughItemsCore.getPluginDisabler()); return plugin; } @@ -77,7 +78,6 @@ public class RoughlyEnoughItemsPlugin { RoughlyEnoughItemsPlugin.LOGGER.error("REI: Failed to load plugin file from %s. (%s)", (Object) modInfo.id, (Object) e.getLocalizedMessage()); } }); - plugins.values().forEach(IRecipePlugin::onFirstLoad); new LinkedList<>(plugins.keySet()).stream().filter(location -> disablingPlugins.contains(location)).forEach(location -> { plugins.remove(location); LOGGER.info("REI: Disabled REI plugin %s.", location.toString()); |
