Phi (Psi addon)

Phi (Psi addon)

114k Downloads

PsionWave crashes server if the caster dies

WaDelma opened this issue ยท 0 comments

commented

I created circle spell bullet with psion wave in it and I died while it was still out. This crashed the game due to the following cast:

wave.setColorizer(((ICAD) cad.getItem()).getComponentInSlot(cad, EnumCADComponent.DYE));

The cast should be guarded by similar check as is done for conjure block trick:
https://github.com/VazkiiMods/Psi/blob/master/src/main/java/vazkii/psi/common/spell/trick/block/PieceTrickConjureBlock.java#L100