          this.field_77994_a = p_77963_1_.func_74771_c("Count");
          this.field_77991_e = p_77963_1_.func_74765_d("Damage");
  
-@@ -198,7 +209,7 @@
+@@ -194,11 +205,12 @@
+                 this.field_151002_e.func_179215_a(this.field_77990_d);
+             }
+         }
++        else this.field_77990_d = null;
+     }
  
      public int func_77976_d()
      {

     }
 
     public static boolean func_77989_b(@Nullable ItemStack p_77989_0_, @Nullable ItemStack p_77989_1_)
@@ -362,7 +380,11 @@
 
     private boolean func_77959_d(ItemStack p_77959_1_)
     {

 
         if (this.field_77990_d != null)
         {
@@ -352,7 +359,19 @@
 
     public static boolean func_77970_a(@Nullable ItemStack p_77970_0_, @Nullable ItemStack p_77970_1_)
     {
