Hex Casting

Hex Casting

6M Downloads

1.20 Forge crash on death when origins is installed (related to #559?)

Aquaeyes opened this issue ยท 4 comments

commented

crash-2024-03-09_08.24.39-client.txt

Description: Ticking entity

java.util.NoSuchElementException: No value present
	at java.util.Optional.get(Optional.java:143) ~[?:?] {re:mixin}
	at at.petrak.hexcasting.forge.cap.adimpl.CapClientCastingStack.tickClientPlayer(CapClientCastingStack.java:22) ~[hexcasting-forge-1.20.1-0.11.1-7-pre-620.jar%23151!/:0.11.1-7-pre-620] {re:classloading}
	at at.petrak.hexcasting.forge.cap.adimpl.__CapClientCastingStack_tickClientPlayer_PlayerTickEvent.invoke(.dynamic) ~[hexcasting-forge-1.20.1-0.11.1-7-pre-620.jar%23151!/:0.11.1-7-pre-620] 

Error occurs with Forge 47.2.0, Hex Casting 0.11.1-7-pre-620, PAUCAL 0.6.0-pre-118, kotlinforforge-4.10.0-all, Caelus API 3.1.0+1.20, Patchouli 1.20.1-84-FORGE. Issue occurs around about one in three times when dying, my reproduction steps was to spawn, fly about 100 blocks away from spawn, then do /kill. The issue occurs with origins, but as soon as it's removed, even leaving it's dependencies in place, there's no issue (as far as I can tell)

commented

linking to #559 here

commented

With origins:
image
Without origins:
image
It looks like the issue is with isDeadOrDying? :oc
image

commented

Logging evt.player.getHealth()

Without Origins:
image
With Origins:
image

Seems semi-common that getHealth and isDeadOrDying will return 20.0 or true still after the /kill command goes through, but only for 1 or 2 calls afterwards at max so far. However, this doesn't cause a crash without Origins (Forge) installed.

commented

Issue does not occur with only Calio.