修复重铸台吞点数的bug

This commit is contained in:
17146 2024-12-11 20:35:28 +08:00
parent 49fd14b2cc
commit 3c1bb24f27

View file

@ -21,6 +21,7 @@ import net.minecraft.world.item.ItemStack;
import javax.annotation.Nullable;
public class ReforgingTableMenu extends AbstractContainerMenu {
protected final Container container;
protected final ContainerLevelAccess access;
@ -282,6 +283,7 @@ public class ReforgingTableMenu extends AbstractContainerMenu {
int level = PerkHelper.getItemPerkLevel(perkItem.getPerk(), gun);
if (level <= 0) {
this.upgradePoint.set((int) gun.getOrCreateTag().getDouble("UpgradePoint"));
return;
}