YuRaNnNzZZ — Сегодня, в 10:42

:WiseTree:
This commit is contained in:
DBotThePony 2023-07-25 16:16:39 +07:00
parent 1c6889f6bc
commit 2be09fe5d2
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -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)
}
}
}