Skip to content

Commit

Permalink
This mod is a disaster
Browse files Browse the repository at this point in the history
  • Loading branch information
enjarai committed Aug 23, 2024
1 parent e059563 commit 16a1903
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ public abstract class CapeFeatureRendererMixin {
)
private boolean showmeyourskin$renderCapeIfElytraHidden(boolean original, @Local(argsOnly = true) AbstractClientPlayerEntity player) {
if (player != null) {
var uuid = player.getUuid();
return original && ModConfig.INSTANCE.getApplicablePieceTransparency(uuid, HideableEquipment.ELYTRA) > 0;
if (!player.isFallFlying() || !ModConfig.INSTANCE.getApplicable(player.getUuid()).forceElytraWhenFlying) {
var uuid = player.getUuid();
return original && ModConfig.INSTANCE.getApplicablePieceTransparency(uuid, HideableEquipment.ELYTRA) > 0;
}
}
return original;
}
Expand Down

0 comments on commit 16a1903

Please sign in to comment.