Fix cosmeticable items never rendering if no cosmetic

This commit is contained in:
Vincent Lee committed 2020-03-29 11:49:28 -05:00
1 parent 52d47de619
commit d0f9f108c0
1 file changed
+4 -1
@@ -78,7 +78,10 @@ public final class BaubleRenderHandler extends LayerRenderer<AbstractClientPlaye
if (item instanceof ICosmeticAttachable) {
ICosmeticAttachable attachable = (ICosmeticAttachable) item;
toRender = attachable.getCosmeticItem(stack);
ItemStack cosmetic = attachable.getCosmeticItem(stack);
if (!cosmetic.isEmpty()) {
toRender = cosmetic;
}
}
toRender.getCapability(CuriosCapability.ITEM).ifPresent(c -> {