Using Reveal with an unbound cleric circle causes NullPointerException
Robotgiggle opened this issue ยท 1 comments
Modloader
Forge, Fabric
Minecraft version
1.20.1
Hex Casting version
0.11.2
Issue description
When an unbound cleric circle tries to use Reveal, the slate produces mishap particles but the circle does not stop, and no mishap is displayed when looking at the impetus with a scrying lens. At the same time, this pops up in the log:
java.lang.NullPointerException: Cannot invoke "net.minecraft.class_3222.method_43496(net.minecraft.class_2561)" because the return value of "at.petrak.hexcasting.common.blocks.circles.impetuses.BlockEntityRedstoneImpetus.getStoredPlayer()" is null
Seems like Reveal needs a player to reveal to, and there's no special handling for an unbound cleric circle trying to cast it.
Steps to reproduce
- Create a spell circle that pushes any iota and then casts Reveal
- Add an unbound cleric impetus
- Run the circle
- Observe mishap particles on the reveal slate, and the error message in the log