Merge pull request #1733 from Zot201/enchantment-fix
Fixed enchanting table applying secondary enchs. Closes #1428
This commit is contained in:
commit
d93e8bcf48
|
@ -9,7 +9,15 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -156,6 +156,45 @@
|
@@ -149,13 +149,52 @@
|
||||||
|
|
||||||
|
public boolean func_92089_a(ItemStack p_92089_1_)
|
||||||
|
{
|
||||||
|
- return this.field_77351_y.func_77557_a(p_92089_1_.func_77973_b());
|
||||||
|
+ return canApplyAtEnchantingTable(p_92089_1_);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void func_151368_a(EntityLivingBase p_151368_1_, Entity p_151368_2_, int p_151368_3_) {}
|
||||||
|
|
||||||
public void func_151367_b(EntityLivingBase p_151367_1_, Entity p_151367_2_, int p_151367_3_) {}
|
public void func_151367_b(EntityLivingBase p_151367_1_, Entity p_151367_2_, int p_151367_3_) {}
|
||||||
|
|
||||||
|
@ -21,7 +29,7 @@
|
||||||
+ */
|
+ */
|
||||||
+ public boolean canApplyAtEnchantingTable(ItemStack stack)
|
+ public boolean canApplyAtEnchantingTable(ItemStack stack)
|
||||||
+ {
|
+ {
|
||||||
+ return func_92089_a(stack);
|
+ return this.field_77351_y.func_77557_a(stack.func_77973_b());
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ private static final java.lang.reflect.Field bookSetter = Enchantment.class.getDeclaredFields()[1];
|
+ private static final java.lang.reflect.Field bookSetter = Enchantment.class.getDeclaredFields()[1];
|
||||||
|
|
Loading…
Reference in New Issue