From ec5d783170f0676f53d3578b847292fb529792f8 Mon Sep 17 00:00:00 2001 From: MaxRobinsonTheGreat Date: Tue, 12 Aug 2025 17:38:06 -0500 Subject: [PATCH] temp fix to digging enchantment issue --- patches/prismarine-item+1.17.0.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patches/prismarine-item+1.17.0.patch diff --git a/patches/prismarine-item+1.17.0.patch b/patches/prismarine-item+1.17.0.patch new file mode 100644 index 0000000..dd8c226 --- /dev/null +++ b/patches/prismarine-item+1.17.0.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/prismarine-item/index.js b/node_modules/prismarine-item/index.js +index a1397a2..1d75cad 100644 +--- a/node_modules/prismarine-item/index.js ++++ b/node_modules/prismarine-item/index.js +@@ -231,7 +231,7 @@ function loader (registryOrVersion) { + const typeOfEnchantLevelValue = registry.supportFeature('typeOfValueForEnchantLevel') + const useStoredEnchantments = registry.supportFeature('booksUseStoredEnchantments') && this.name === 'enchanted_book' + +- if (typeOfEnchantLevelValue === 'short' && enchantNbtKey === 'ench') { ++ if (typeOfEnchantLevelValue === 'short' && (enchantNbtKey === 'ench' || enchantNbtKey === 'componentEnchantments')) { + let itemEnch = [] + + if (useStoredEnchantments && this?.nbt?.value?.StoredEnchantments) {