Skip to content

Commit

Permalink
fixed multi overlay textured tools applying color on second overlay a…
Browse files Browse the repository at this point in the history
…nd abovelayer
  • Loading branch information
Trinsdar committed Dec 5, 2023
1 parent 702acee commit a314762
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ default void onItemBreak(ItemStack stack, Player entity) {

@Override
default int getItemColor(ItemStack stack, @Nullable Block block, int i) {
return i == 0 ? getPrimaryMaterial(stack).getRGB() : getSubColour(stack) == 0 ? getSecondaryMaterial(stack).getRGB() : getSubColour(stack);
return i >= 2 ? -1 : i == 0 ? getPrimaryMaterial(stack).getRGB() : getSubColour(stack) == 0 ? getSecondaryMaterial(stack).getRGB() : getSubColour(stack);
}

@Override
Expand Down

0 comments on commit a314762

Please sign in to comment.