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

Crash when trying to take health in creative #3

Closed
jackrtades opened this issue Nov 1, 2024 · 4 comments
Closed

Crash when trying to take health in creative #3

jackrtades opened this issue Nov 1, 2024 · 4 comments

Comments

@jackrtades
Copy link

Version Information

Forge version: 47.3.11
Psi version: 1.20-103

<script src="https://gist.github.com/jackrtades/a9dc05aa09f5f00c5559ae55606cc6f8.js"></script>

Further Information

Steps to reproduce:

  1. I cast a spell that took all of my energy and when it ticked down to take health it crashed.
    The spell
    {modsRequired:[{modName:"psi",modVersion:"2.0.0"}],spellList:[{data:{key:"psi:trick_smite",params:{_position:2}},x:1,y:4},{data:{key:"psi:operator_entity_position",params:{_target:4}},x:1,y:5},{data:{constantValue:"32",key:"psi:constant_number"},x:2,y:3},{data:{key:"psi:selector_nearby_enemies",params:{_position:4,_radius:1}},x:2,y:4},{data:{key:"psi:operator_random_entity",params:{_target:1}},x:2,y:5},{data:{key:"psi:error_suppressor"},x:3,y:3},{data:{key:"psi:operator_entity_position",params:{_target:2}},x:3,y:4},{data:{key:"psi:selector_focal_point"},x:3,y:5}],spellName:"Smite (Ajustable)",uuidLeast:-6327469632632222565L,uuidMost:7394119008134316247L,validSpell:1b}

What I expected to happen: spell stops

What happened instead: game crashes

@TheidenHD
Copy link
Owner

This should be fixed with Alpha 6. If it's still there send a crash report.

@Syntax3rr
Copy link

Still an issue:

Description: Ticking player

java.lang.NullPointerException: Cannot invoke "net.minecraftforge.registries.ForgeRegistry.getHolder(net.minecraft.resources.ResourceKey)" because the return value of "net.minecraftforge.registries.RegistryManager.getRegistry(net.minecraft.resources.ResourceKey)" is null
	at vazkii.psi.common.core.handler.PlayerDataHandler$PlayerData.deductPsi(PlayerDataHandler.java:693) ~[Psi-1.20-103.jar%23159!/:1.20-103] {re:classloading}

crash-2025-01-29_13.04.36-server.txt

TheidenHD added a commit that referenced this issue Jan 29, 2025
@TheidenHD
Copy link
Owner

Can you please check if it is fixed?
https://github.com/TheidenHD/Psi/releases/tag/1.20-Alpha-7

@Syntax3rr
Copy link

Fixed! Thanks for the hard work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants