修复了枪械重铸台吞点数的问题
This commit is contained in:
parent
56d852c39d
commit
39dc6cf12b
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ public class ReforgingTableMenu extends AbstractContainerMenu {
|
||||||
ItemStack output = gun.copy();
|
ItemStack output = gun.copy();
|
||||||
PerkHelper.removePerkByType(output, perkItem.getPerk().type);
|
PerkHelper.removePerkByType(output, perkItem.getPerk().type);
|
||||||
GunsTool.setGunDoubleTag(output, "UpgradePoint", Math.min(MAX_UPGRADE_POINT, level - 1 + GunsTool.getGunDoubleTag(output, "UpgradePoint", 0)));
|
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.setItem(INPUT_SLOT, output);
|
||||||
this.container.setChanged();
|
this.container.setChanged();
|
||||||
|
|
Loading…
Add table
Reference in a new issue