mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 04:32:23 +00:00
Fix cosmeticable items never rendering if no cosmetic
This commit is contained in:
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 -> {
|
||||
|
||||
Reference in new issue
Block a user