MinecraftschurliMods / Ars-Magica-Legacy

Port of Mithion's Ars Magica 2 mod for Minecraft 1.18 and above.
https://www.curseforge.com/minecraft/mc-mods/ars-magica-legacy
Other
12 stars 5 forks source link

Fix a few crashes related to capability handling #397

Closed IchHabeHunger54 closed 1 year ago

IchHabeHunger54 commented 1 year ago

This PR fixes a few issues with capability handling, mainly in the helper classes.

Most notably, instead of throwing when things are missing, default values are used.

This fixes issues such as the game crashing when applying mana regen/burnout reduction to animals, and is potentially a fix for #381 (that one is weird, so we'll have to see).

Note: This is not yet tested, will do so tomorrow.