Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Reveal with an unbound cleric circle causes NullPointerException #840

Open
Robotgiggle opened this issue Jan 27, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Robotgiggle
Copy link
Contributor

Robotgiggle commented Jan 27, 2025

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

  1. Create a spell circle that pushes any iota and then casts Reveal
  2. Add an unbound cleric impetus
  3. Run the circle
  4. Observe mishap particles on the reveal slate, and the error message in the log
@Robotgiggle Robotgiggle added the bug Something isn't working label Jan 27, 2025
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Hex Casting Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant