Skip to content

Commit e595fe8

Browse files
[fix] Fix Blaze Enchanter accept Super Enchanter Template no matter it's in Super Enchanting mode or not
1 parent cfd7e8b commit e595fe8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ Require Create: Dragons Plus 1.5.0
55
#### Update
66
* Now you can throw item to Mechanical Grindstone to process it
77
* Improve English grammar. clarity, and consistency (by @Zain)
8-
* More goggle tooltips has been added to Blaze Forger/Enchanter to indicate why it's not working
8+
* More goggle tooltips has been added to Blaze Forger & Blaze Enchanter to indicate why it's not working
99
* Added a few more explanation on ponder
1010

1111
#### Change
12-
* Removed dye buckets and fluid hatch from C:EI creative tab since they already exist in C:DP own creative tab
12+
* Removed dye buckets and fluid hatch from C:EI creative tab since they already exist in C:DP own creative tab
13+
14+
#### Fix
15+
* Fixed Blaze Enchanter accept Super Enchanter Template no matter it's in Super Enchanting mode or not

src/main/java/plus/dragons/createenchantmentindustry/common/processing/enchanter/behaviour/TemplateEnchantingBehaviour.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public boolean canProcess(Level level, ItemStack stack, boolean special) {
3939
return false;
4040
if (stack.getItem() instanceof EnchantingTemplateItem template) {
4141
if (stack.getOrDefault(DataComponents.STORED_ENCHANTMENTS, ItemEnchantments.EMPTY).isEmpty())
42-
return !special || template.isSpecial();
42+
return (!special && !template.isSpecial()) || (special && template.isSpecial());
4343
}
4444
return false;
4545
}

0 commit comments

Comments
 (0)