Skip to content

Commit

Permalink
properly format "not enough emc" (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanDMC committed Jun 8, 2022
1 parent 62fdb61 commit be1b162
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -398,7 +398,7 @@ public ActionResultType handleActivation(PlayerEntity player, Hand hand) {
IKnowledgeProvider provider = ProjectEAPI.getTransmutationProxy().getKnowledgeProviderFor(owner);
BigInteger emc = provider.getEmc();
if(emc.compareTo(BigInteger.valueOf(cost)) < 0) {
player.sendStatusMessage(new TranslationTextComponent("block.projectexpansion.emc_link.not_enough_emc", new StringTextComponent(String.valueOf(BigInteger.valueOf(ProjectEAPI.getEMCProxy().getValue(itemStack)))).setStyle(ColorStyle.GREEN)).setStyle(ColorStyle.RED), true);
player.sendStatusMessage(new TranslationTextComponent("block.projectexpansion.emc_link.not_enough_emc", new StringTextComponent(EMCFormat.format(BigInteger.valueOf(ProjectEAPI.getEMCProxy().getValue(itemStack)))).setStyle(ColorStyle.GREEN)).setStyle(ColorStyle.RED), true);
return ActionResultType.CONSUME;
}
FluidActionResult fillResult = FluidUtil.tryFillContainer(inHand, this, 1000, player, true);
Expand Down

0 comments on commit be1b162

Please sign in to comment.