Goety

Goety

48k Downloads

Crash rendering first person gloves

ochotonida opened this issue ยท 2 comments

commented

Equipping a curio with a renderer not added by Goety in the glove slot crashes the game.
Fix is adding an instanceof check here:

public static WearRenderer getRenderer(ItemStack stack) {
if (!stack.isEmpty()) {
return (WearRenderer) CuriosRendererRegistry.getRenderer(stack.getItem()).orElse(null);
}
return null;
}

Crash report here: ochotonida/artifacts#198

commented

Thanks man! I've managed to find a way to fix this, so thanks for informing me! :) The fix will be in the next update.

commented

Re-uploaded 2.0.4 to have crash fix.