Skip to content

Commit

Permalink
Reverted previous change
Browse files Browse the repository at this point in the history
  • Loading branch information
CleverNucleus committed Jun 26, 2021
1 parent 0e5880a commit cbd88bc
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ public static void tooltipModify(ItemStack stack, TooltipContext context, List<T
if(attribute == EntityAttributes.GENERIC_ATTACK_DAMAGE || attribute == EntityAttributes.GENERIC_ATTACK_SPEED) {
String prefix = d >= 0.0D ? "+" : "";

if(d != 0.0D) {
lines.add(lines.size() - index, (new LiteralText(" ")).append(new TranslatableText("attribute.modifier.equals." + modifier.getOperation().getId(), new Object[] {prefix + MODIFIER_FORMAT.format(d), new TranslatableText(((EntityAttribute)entry.getKey()).getTranslationKey())})).formatted(Formatting.DARK_GREEN));
}
lines.add(lines.size() - index, (new LiteralText(" ")).append(new TranslatableText("attribute.modifier.equals." + modifier.getOperation().getId(), new Object[] {prefix + MODIFIER_FORMAT.format(d), new TranslatableText(((EntityAttribute)entry.getKey()).getTranslationKey())})).formatted(Formatting.DARK_GREEN));
}
}
}
Expand Down

0 comments on commit cbd88bc

Please sign in to comment.