Psionic Peripherals

Psionic Peripherals

603k Downloads

Crash caused by Psi, confirmed by Apotheosis Dev

ReeCodes opened this issue ยท 4 comments

commented

May I get some additional context? How was this crash reached?

commented

This occurs on game initialization (common_setup event). Oddly, I didn't get the the first time I started my instance, but did the second time.

EDIT: The third run of the game didn't crash. This seems to be a threading related issue.

commented

You need to use the event's enqueueWork method to run things in the event handler.

commented

This is caused by the lack of usage of a LazyValue in your repair material here https://github.com/Dudblockman/Psipherals/blob/master/src/main/java/com/dudblockman/psipherals/util/libs/AdvPsimetalToolMaterial.java

You would need to make it match vanilla's usage as seen in net.minecraft.item.ItemTier by wrapping your Ingredient in a LazyValue instead of direct usage.