YuRaNnNzZZ — Сегодня, в 10:42
:WiseTree:
This commit is contained in:
parent
1c6889f6bc
commit
2be09fe5d2
@ -96,11 +96,11 @@ object MatteryEnergyProvider : IBlockComponentProvider, IServerDataProvider<Bloc
|
||||
val fb = b.formatPower().copy().withStyle(ChatFormatting.DARK_RED)
|
||||
|
||||
return if (diff.isZero) {
|
||||
TranslatableComponent("otm.gui.diff", diff.formatMatter().copy().withStyle(ChatFormatting.GRAY), fa, fb)
|
||||
TranslatableComponent("otm.gui.diff", diff.formatPower().copy().withStyle(ChatFormatting.GRAY), fa, fb)
|
||||
} else if (diff.isPositive) {
|
||||
TranslatableComponent("otm.gui.diff", diff.formatMatter().copy().withStyle(ChatFormatting.DARK_GREEN), fa, fb)
|
||||
TranslatableComponent("otm.gui.diff", diff.formatPower().copy().withStyle(ChatFormatting.DARK_GREEN), fa, fb)
|
||||
} else {
|
||||
TranslatableComponent("otm.gui.diff", (-diff).formatMatter().copy().withStyle(ChatFormatting.DARK_RED), fa, fb)
|
||||
TranslatableComponent("otm.gui.diff", (-diff).formatPower().copy().withStyle(ChatFormatting.DARK_RED), fa, fb)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user