Fix a condition that caused the enchantment table to roll invalid enchantments.
This commit is contained in:
parent
5ad2fc90cb
commit
449bf3a292
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@
|
||||||
for (Enchantment enchantment : Enchantment.field_185264_b)
|
for (Enchantment enchantment : Enchantment.field_185264_b)
|
||||||
{
|
{
|
||||||
- if ((!enchantment.func_185261_e() || p_185291_2_) && (enchantment.field_77351_y.func_77557_a(item) || flag))
|
- if ((!enchantment.func_185261_e() || p_185291_2_) && (enchantment.field_77351_y.func_77557_a(item) || flag))
|
||||||
+ if ((!enchantment.func_185261_e() || p_185291_2_) && (enchantment.canApplyAtEnchantingTable(p_185291_1_) || (flag || enchantment.isAllowedOnBooks())))
|
+ if ((!enchantment.func_185261_e() || p_185291_2_) && (enchantment.canApplyAtEnchantingTable(p_185291_1_) || (flag && enchantment.isAllowedOnBooks())))
|
||||||
{
|
{
|
||||||
for (int i = enchantment.func_77325_b(); i > enchantment.func_77319_d() - 1; --i)
|
for (int i = enchantment.func_77325_b(); i > enchantment.func_77319_d() - 1; --i)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue