Skip to content

Commit

Permalink
Fixed PluginManager not using mod filter because collect was being ca…
Browse files Browse the repository at this point in the history
…lled too soon
  • Loading branch information
Buuz135 committed Jul 22, 2020
1 parent 85ec91d commit e0ffca1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/main/java/com/hrznstudio/titanium/Titanium.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ public class Titanium extends ModuleController {
public static final Logger LOGGER = LogManager.getLogger(MODID);
public static NetworkHandler NETWORK = new NetworkHandler(MODID);
public static final PluginManager RESOURCES = new PluginManager(MODID, FeaturePlugin.FeaturePluginType.FEATURE, featurePlugin -> featurePlugin.value().equalsIgnoreCase(ResourceRegistry.PLUGIN_NAME), false);
;

public Titanium() {
NETWORK.registerMessage(ButtonClickNetworkMessage.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public PluginManager(String modid, FeaturePlugin.FeaturePluginType type, Predica
this.modid = modid;
this.type = type;
this.predicate = predicate;
this.plugins = collect();
this.useModIdFilter = useModIdFilter;
this.plugins = collect();
this.plugins.forEach(aClass -> LOGGER.info("Found FeaturePluginInstance for class " + aClass.getSimpleName() + " for plugin " + ((FeaturePlugin) aClass.getAnnotation(FeaturePlugin.class)).value()));
}

Expand Down

0 comments on commit e0ffca1

Please sign in to comment.