Skip to content

Commit

Permalink
Fix custom armor color changing all armor layers (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry282 authored Sep 10, 2023
1 parent 53dbc37 commit 7236b23
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ private void replaceArmorColor(ItemStack stack, CallbackInfoReturnable<Integer>

@Inject(method = "getColorFromItemStack", at = @At("HEAD"), cancellable = true)
private void replaceStackArmorColor(ItemStack stack, int renderPass, CallbackInfoReturnable<Integer> cir) {
if (renderPass > 0) return;
ItemArmorHookKt.replaceArmorColor(stack, cir);
}

Expand Down

0 comments on commit 7236b23

Please sign in to comment.