From 1591373bf65dbd36b29fb16a2b235e73d4299d23 Mon Sep 17 00:00:00 2001 From: LexManos Date: Wed, 16 Mar 2016 18:24:48 -0700 Subject: [PATCH] Fix vanilla bug where bows consumed tipped arrows in creative. --- patches/minecraft/net/minecraft/item/ItemBow.java.patch | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/item/ItemBow.java.patch b/patches/minecraft/net/minecraft/item/ItemBow.java.patch index d91f85c80..f8f76a314 100644 --- a/patches/minecraft/net/minecraft/item/ItemBow.java.patch +++ b/patches/minecraft/net/minecraft/item/ItemBow.java.patch @@ -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;