Fix vanilla bug where bows consumed tipped arrows in creative.
This commit is contained in:
parent
f22ed86ad9
commit
1591373bf6
1 changed files with 7 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
||||||
if (itemstack != null || flag)
|
if (itemstack != null || flag)
|
||||||
{
|
{
|
||||||
if (itemstack == null)
|
if (itemstack == null)
|
||||||
@@ -97,7 +101,6 @@
|
@@ -97,12 +101,11 @@
|
||||||
itemstack = new ItemStack(Items.field_151032_g);
|
itemstack = new ItemStack(Items.field_151032_g);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,6 +19,12 @@
|
||||||
float f = func_185059_b(i);
|
float f = func_185059_b(i);
|
||||||
|
|
||||||
if ((double)f >= 0.1D)
|
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 @@
|
@@ -189,6 +192,9 @@
|
||||||
{
|
{
|
||||||
boolean flag = this.func_185060_a(p_77659_3_) != null;
|
boolean flag = this.func_185060_a(p_77659_3_) != null;
|
||||||
|
|
Loading…
Reference in a new issue