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 3255ff4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions 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());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.violetmoon.zeta.config.ConfigFlagManager;
import org.violetmoon.zeta.event.play.loading.ZGatherAdditionalFlags;

@SuppressWarnings("removal")
@Deprecated(forRemoval = true)
public class ForgeZGatherAdditionalFlags extends Event implements ZGatherAdditionalFlags {

Expand Down

0 comments on commit 3255ff4

Please sign in to comment.