--- a/net/minecraft/server/TagsServer.java
+++ b/net/minecraft/server/TagsServer.java
@@ -8,6 +8,7 @@
 public class TagsServer<T> extends Tags<T> {
 
     private final IRegistry<T> a;
+    public int version; // CraftBukkit
 
     public TagsServer(IRegistry<T> iregistry, String s, String s1) {
         super(iregistry::getOptional, s, false, s1);
@@ -28,7 +29,7 @@
             Iterator iterator1 = ((Tag) entry.getValue()).a().iterator();
 
             while (iterator1.hasNext()) {
-                T t0 = iterator1.next();
+                T t0 = (T) iterator1.next(); // CraftBukkit - decompile error
 
                 packetdataserializer.d(this.a.a(t0));
             }
