Bug Report: NullPointerException in Primal Magick (EssenceCaskTileEntity) Causing Server Crash
Omitted-library opened this issue ยท 1 comments
A server crash is occurring when using the Arcana Altar Tile from Mana & Artifice. The crash originates in the Primal Magick mod, specifically in the EssenceCaskTileEntity class, due to a NullPointerException. This issue occurs because the getInventoryIndexForFace method attempts to call face.ordinal() on a null value (face). The crash appears to be triggered by an interaction between the Arcana Altar Tile (Mana & Artifice) and an Essence Cask (Primal Magick).
Steps to Reproduce:
Place an Essence Cask from Primal Magick near an Arcana Altar Tile from Mana & Artifice.
Attempt to craft a spell using the Arcana Altar Tile.
The server crashes immediately.
The Arcana Altar Tile seems to interact with the Essence Cask, triggering a call to the getInventoryIndexForFace method.
The face variable is null during this interaction, leading to a NullPointerException.
The crash log identifies the following key points:
Error: NullPointerException in EssenceCaskTileEntity at line 288.
Method: getInventoryIndexForFace.
Issue: face.ordinal() is called without null checking.
The server crashes due to a NullPointerException, requiring a rollback to a previous backup to recover.
Suspected Mods:
Mana and Artifice (mna), Version: 3.1.0.1
Primal Magick (primalmagick), Version: 4.0.9
Forge - 47.3.0
After some investigation, I've confirmed that this bug is a duplicate of #280, which was fixed in version 4.1.0-beta of Primal Magick. Unfortunately, that does mean you'll need to update to version 1.20.2 of Minecraft in order to get the fix. I apologize for the inconvenience.