Skip to content

Commit

Permalink
emergency patch for emc removal bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanDMC committed Feb 20, 2022
1 parent d249323 commit 8ec29a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8ec29a9

Please sign in to comment.