Architectury API (Fabric/Forge/NeoForge)

Architectury API (Fabric/Forge/NeoForge)

158M Downloads

Platform.getMod and Platform.getOptionalMod throw an exception if the mod isn't loaded

BasiqueEvangelist opened this issue ยท 1 comments

commented

This happens because the ModImpl is always constructed if the mod isn't present in the mods map, and its constructor asserts that the mod is present via an Optional.get call.