mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 00:07:45 +00:00
Fix enchanting applying the same enchantment multiple times. Closes #2273
This commit is contained in:
1 parent
82537e5763
commit
9032f7e37e
1 file changed
+1
-1
@@ -25,7 +25,7 @@
|
||||
- if (!enchantmentdata1.field_76302_b.func_77326_a(Enchantment.func_180306_c(integer.intValue())))
|
||||
+ Enchantment e1 = enchantmentdata1.field_76302_b;
|
||||
+ Enchantment e2 = Enchantment.func_180306_c(integer.intValue());
|
||||
+ if (e1.func_77326_a(e2) && e2.func_77326_a(e1)) //Forge BugFix: Let Both enchantments veto being together
|
||||
+ if (!e1.func_77326_a(e2) || !e2.func_77326_a(e1)) //Forge BugFix: Let Both enchantments veto being together
|
||||
{
|
||||
flag = false;
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user