Skip to content

Commit

Permalink
Fix Litmus Paper always colorizing integrity violation text
Browse files Browse the repository at this point in the history
  • Loading branch information
hjake123 committed Oct 8, 2024
1 parent 318f973 commit 7808854
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ private List<Component> buildMeasurementText(ItemStack stack, Player player){
.withStyle(ConfigMan.CLIENT.colorizeLitmusOutput.get() ? Style.EMPTY.withColor(BiomeColors.getAverageWaterColor(player.level(), player.getOnPos())) : Style.EMPTY));
}
if(measurement.integrity_violated()){
text.add(Component.translatable("text.reactive.litmus_integrity_failure").withStyle(ChatFormatting.DARK_RED));
text.add(Component.translatable("text.reactive.litmus_integrity_failure")
.withStyle(ConfigMan.CLIENT.colorizeLitmusOutput.get() ? ChatFormatting.DARK_RED : ChatFormatting.WHITE));
}
}
}else{
Expand Down

0 comments on commit 7808854

Please sign in to comment.