修复了枪械重铸台吞点数的问题

This commit is contained in:
17146 2025-01-22 00:02:12 +08:00
parent 56d852c39d
commit 39dc6cf12b

View file

@ -294,7 +294,7 @@ public class ReforgingTableMenu extends AbstractContainerMenu {
ItemStack output = gun.copy();
PerkHelper.removePerkByType(output, perkItem.getPerk().type);
GunsTool.setGunDoubleTag(output, "UpgradePoint", Math.min(MAX_UPGRADE_POINT, level - 1 + GunsTool.getGunDoubleTag(output, "UpgradePoint", 0)));
this.upgradePoint.set((int) GunsTool.getGunDoubleTag(gun, "UpgradePoint", 0));
this.upgradePoint.set((int) GunsTool.getGunDoubleTag(output, "UpgradePoint", 0));
this.container.setItem(INPUT_SLOT, output);
this.container.setChanged();