--- a/net/minecraft/network/protocol/BundlerInfo.java
+++ b/net/minecraft/network/protocol/BundlerInfo.java
@@ -40,7 +40,7 @@
                         } else if (this.bundlePackets.size() >= 4096) {
                             throw new IllegalStateException("Too many packets in a bundle");
                         } else {
-                            this.bundlePackets.add(p_320276_);
+                            this.bundlePackets.add((Packet<T>)p_320276_);
                             return null;
                         }
                     }
