From 558e7d754e8a30b313ec83d304c8ee48d9353b6f Mon Sep 17 00:00:00 2001 From: LexManos Date: Sun, 15 Feb 2026 13:30:08 -0800 Subject: [PATCH] Fix bookshelves having too much enchanting power. Fixes #10770 --- .../net/minecraft/world/inventory/EnchantmentMenu.java.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/minecraft/net/minecraft/world/inventory/EnchantmentMenu.java.patch b/patches/minecraft/net/minecraft/world/inventory/EnchantmentMenu.java.patch index 3c91be2590..11fcd23d9f 100644 --- a/patches/minecraft/net/minecraft/world/inventory/EnchantmentMenu.java.patch +++ b/patches/minecraft/net/minecraft/world/inventory/EnchantmentMenu.java.patch @@ -9,7 +9,7 @@ } @Override -@@ -90,23 +_,25 @@ +@@ -90,23 +_,24 @@ if (!itemstack.isEmpty() && itemstack.isEnchantable()) { this.access.execute((p_449765_, p_449766_) -> { IdMap> idmap = p_449765_.registryAccess().lookupOrThrow(Registries.ENCHANTMENT).asHolderIdMap(); @@ -18,7 +18,7 @@ for (BlockPos blockpos : EnchantingTableBlock.BOOKSHELF_OFFSETS) { if (EnchantingTableBlock.isValidBookShelf(p_449765_, p_449766_, blockpos)) { - j++; +- j++; + j += p_449765_.getBlockState(p_449766_.offset(blockpos)).getEnchantPowerBonus(p_449765_, p_449766_.offset(blockpos)); } }