diff --git a/src/main/java/cool/furry/mc/forge/projectexpansion/item/ItemUpgrade.java b/src/main/java/cool/furry/mc/forge/projectexpansion/item/ItemUpgrade.java index 776e6aa4..9c02d552 100644 --- a/src/main/java/cool/furry/mc/forge/projectexpansion/item/ItemUpgrade.java +++ b/src/main/java/cool/furry/mc/forge/projectexpansion/item/ItemUpgrade.java @@ -141,7 +141,7 @@ public ActionResultType onItemUseFirst(ItemStack stack, ItemUseContext context) world.setTileEntity(pos, newTile); } - provider.setEmc(provider.getEmc().subtract(BigInteger.valueOf(newEmc.longValue()))); + provider.setEmc(newEmc); player.sendStatusMessage(new TranslationTextComponent("item.projectexpansion.matter_upgrader.done", EMCFormat.INSTANCE.format(BigInteger.valueOf(diff))).mergeStyle(TextFormatting.WHITE), true); return ActionResultType.SUCCESS; }