Skip to content

Commit

Permalink
Update ChocodisguiseArmorLayer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrbysco committed Mar 16, 2024
1 parent 42f7c72 commit 5a5182e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ public void render(PoseStack poseStack, MultiBufferSource multiBufferSource, int
private void renderArmorPiece(PoseStack poseStack, MultiBufferSource multiBufferSource, T livingEntity, EquipmentSlot slot, int i, ChocoDisguiseModel humanoidModel) {
if (humanoidModel == null) return;
ItemStack itemStack = livingEntity.getItemBySlot(slot);
if (itemStack.getItem() instanceof FabricChocoDisguiseItem) {
FabricChocoDisguiseItem armorItem = (FabricChocoDisguiseItem) itemStack.getItem();
if (itemStack.getItem() instanceof FabricChocoDisguiseItem armorItem) {
((HumanoidModel) this.getParentModel()).copyPropertiesTo(humanoidModel);
this.setPartVisibility(humanoidModel, convertSlot(slot));
boolean bl2 = itemStack.hasFoil();
Expand Down

0 comments on commit 5a5182e

Please sign in to comment.