Skip to content

Commit

Permalink
Fix JEI plugin failure when no potions are registered to the zeta reg…
Browse files Browse the repository at this point in the history
…istry
  • Loading branch information
mezz committed Sep 8, 2024
1 parent e7c935f commit 5bc4a35
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,6 @@ protected <O> void trackRegisteredObject(ResourceKey<Registry<O>> keyGeneric, Ho
* Gets all the registered objects from this Zeta
*/
public <O> Collection<Holder<O>> getRegisteredObjects(ResourceKey<Registry<O>> registry) {
return (Collection<Holder<O>>) (Collection) myRegisteredObjects.get((ResourceKey) registry);
return (Collection<Holder<O>>) (Collection) myRegisteredObjects.getOrDefault((ResourceKey) registry, List.of());
}
}

0 comments on commit 5bc4a35

Please sign in to comment.