<commit_before>--- ../src-base/minecraft/net/minecraft/entity/player/InventoryPlayer.java
+++ ../src-work/minecraft/net/minecraft/entity/player/InventoryPlayer.java
@@ -315,6 +315,14 @@
                 this.field_70462_a[i].func_77945_a(this.field_70458_d.field_70170_p, this.field_70458_d, i, this.field_70461_c == i);
             }
         }
+
+        for (int i = 0; i < field_70460_b.length; i++)
+        {
+            if (field_70460_b[i] != null)
+            {
+                field_70460_b[i].func_77973_b().onArmorTick(field_70458_d.field_70170_p, field_70458_d, field_70460_b[i]);
+            }
+        }
     }
 
     public boolean func_146026_a(Item p_146026_1_)
<commit_msg>Preserve ItemStack Caps when picking Items up.<commit_after>--- ../src-base/minecraft/net/minecraft/entity/player/InventoryPlayer.java
+++ ../src-work/minecraft/net/minecraft/entity/player/InventoryPlayer.java
@@ -272,12 +272,8 @@
         {
             if (this.field_70462_a[j] == null)
             {
-                this.field_70462_a[j] = new ItemStack(item, 0, p_70452_1_.func_77960_j());
-
-                if (p_70452_1_.func_77942_o())
-                {
-                    this.field_70462_a[j].func_77982_d((NBTTagCompound)p_70452_1_.func_77978_p().func_74737_b());
-                }
+                this.field_70462_a[j] = p_70452_1_.func_77946_l(); // Forge: Replace Item clone above to preserve item capabilities when picking the item up.
+                this.field_70462_a[j].field_77994_a = 0;
             }
 
             int k = i;
@@ -315,6 +311,14 @@
                 this.field_70462_a[i].func_77945_a(this.field_70458_d.field_70170_p, this.field_70458_d, i, this.field_70461_c == i);
             }
         }
+
+        for (int i = 0; i < field_70460_b.length; i++)
+        {
+            if (field_70460_b[i] != null)
+            {
+                field_70460_b[i].func_77973_b().onArmorTick(field_70458_d.field_70170_p, field_70458_d, field_70460_b[i]);
+            }
+        }
     }
 
     public boolean func_146026_a(Item p_146026_1_)

{'fraction_non_alphanumeric': 0.1363855421686747, 'fraction_numerical': 0.13542168674698796, 'mean_word_length': 2.1124437781109444, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '260224', 'n_tokens_mistral': 954, 'n_tokens_neox': 775, 'n_words': 94}