Skip to content

Commit

Permalink
fix wings showing for people with no ring
Browse files Browse the repository at this point in the history
  • Loading branch information
Leclowndu93150 committed Sep 12, 2024
1 parent 6108edc commit c66a39c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ mod_name=Modular Angel Ring

mod_license=All Rights Reserved

mod_version=1.3.3
mod_version=1.4.0

mod_group_id=com.leclowndu93150.modular_angelring

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public static String getWingType(AbstractClientPlayer playerEntity) {
if(angelRingStack.has(DataComponentRegistry.WING)){
return angelRingStack.get(DataComponentRegistry.WING);
}
return "ANGEL";
}
return "NO_WING";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ public void render(@NotNull PoseStack matrixStack, @NotNull MultiBufferSource bu
case "GOLDEN":
Minecraft.getInstance().getItemRenderer().renderStatic(player, new ItemStack(ItemRegistry.GOLDEN_WINGS_BOTH.get()), ItemDisplayContext.NONE, false, matrixStack, buffer, player.level(), 0xF000F0, OverlayTexture.NO_OVERLAY, player.getId());
break;
default:
case "ANGEL":
Minecraft.getInstance().getItemRenderer().renderStatic(player, new ItemStack(ItemRegistry.ANGEL_WINGS_BOTH.get()), ItemDisplayContext.NONE, false, matrixStack, buffer, player.level(), 0xF000F0, OverlayTexture.NO_OVERLAY, player.getId());
break;
default:
break;
}

matrixStack.popPose();
Expand Down

0 comments on commit c66a39c

Please sign in to comment.