mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-25 16:43:45 +02:00
temp fix to digging enchantment issue
This commit is contained in:
parent
e51bb169a3
commit
ec5d783170
1 changed files with 13 additions and 0 deletions
13
patches/prismarine-item+1.17.0.patch
Normal file
13
patches/prismarine-item+1.17.0.patch
Normal file
|
@ -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) {
|
Loading…
Add table
Reference in a new issue