Polarice3/Goety-2

Crash rendering first person gloves

Closed this issue · 2 comments

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

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.

Re-uploaded 2.0.4 to have crash fix.