diff --git a/src/main/kotlin/me/steven/indrev/armor/ModuleFeatureRenderer.kt b/src/main/kotlin/me/steven/indrev/armor/ModuleFeatureRenderer.kt index 684de2947..6d2b33253 100644 --- a/src/main/kotlin/me/steven/indrev/armor/ModuleFeatureRenderer.kt +++ b/src/main/kotlin/me/steven/indrev/armor/ModuleFeatureRenderer.kt @@ -32,7 +32,7 @@ class ModuleFeatureRenderer, A : Biped val itemStack = livingEntity.getEquippedStack(equipmentSlot) val item = itemStack.item as? IRModularArmorItem ?: return if (item.slotType == equipmentSlot) { - (this.contextModel as BipedEntityModel).setAttributes(bipedEntityModel) + (this.contextModel as? BipedEntityModel)?.setAttributes(bipedEntityModel) ?: return setVisible(bipedEntityModel, equipmentSlot) val rgb = item.getColor(itemStack) val r = (rgb and 0xFF0000 shr 16) / 255f