Auto-Enchanter has strict slot order
100petr opened this issue ยท 4 comments
๐ Description (REQUIRED)
The author enchanter does not work if the item is on the left (first) slot
๐ Steps to reproduce the Issue (REQUIRED)
- Place auto enchanter
- Insert an item (such as a pickaxe) into the left (first) slot
- Insert an enchanted book (eg unbreaking) into the right (second) slot
- Nothing happens
If the enchanted book is placed in the left (first) slot and the item in the right (second), the auto enchanter works.
Video: https://youtu.be/NPX6k2nsg-Q
๐ก Expected behavior (REQUIRED)
The auto enchanter will work if there is an item in the right (first) slot and an enchanted book in the left (second) slot
๐ Server Log
N/A
๐ /error-reports/ Folder
N/A
๐งญ Environment (REQUIRED)
Can confirm that it is caused by commit cb3e9d. What happens: because isEnchantable
now returns false instead of true under specific conditions, the for loop only loops once and returns null instead of checking both combinations of book and item.