architectury / architectury-api

An intermediary api aimed at easing development of multiplatform mods.
https://discord.architectury.dev/
GNU Lesser General Public License v3.0
315 stars 56 forks source link

[1.20.2] Defer `EventBusHooks#whenAvailable` when an eventbus isn't available, instead of throwing. #563

Open Jab125 opened 2 weeks ago

Jab125 commented 2 weeks ago

whenAvailable implies that an the Consumer will be used when the event bus is available, but instead, it immediately throws when it is not.