Skip to content

Commit

Permalink
Fix capability attachment to wrong capability types
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jun 10, 2024
1 parent a07c4e7 commit ee3ece0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ protected void setup(FMLCommonSetupEvent event) {
Objects.requireNonNull(IngredientComponent.ITEMSTACK, "Item ingredient component is not initialized");
Objects.requireNonNull(IngredientComponent.FLUIDSTACK, "Fluid ingredient component is not initialized");
Objects.requireNonNull(IngredientComponent.ENERGY, "Energy ingredient component is not initialized");

IngredientComponent.REGISTRY.forEach(ingredientComponent -> {
getModEventBus().addListener(ingredientComponent::gatherCapabilities);
});
}

@Override
Expand Down

0 comments on commit ee3ece0

Please sign in to comment.