Fix vanilla bug where bows consumed tipped arrows in creative.

This commit is contained in:
LexManos 2016-03-16 18:24:48 -07:00
parent f22ed86ad9
commit 1591373bf6

View file

@ -11,7 +11,7 @@
if (itemstack != null || flag)
{
if (itemstack == null)
@@ -97,7 +101,6 @@
@@ -97,12 +101,11 @@
itemstack = new ItemStack(Items.field_151032_g);
}
@ -19,6 +19,12 @@
float f = func_185059_b(i);
if ((double)f >= 0.1D)
{
- boolean flag1 = flag && itemstack.func_77973_b() == Items.field_151032_g;
+ boolean flag1 = flag && itemstack.func_77973_b() instanceof ItemArrow; //Forge: Fix consuming custom arrows.
if (!p_77615_2_.field_72995_K)
{
@@ -189,6 +192,9 @@
{
boolean flag = this.func_185060_a(p_77659_3_) != null;