mirror of
https://github.com/PaperMC/Paper.git
synced 2024-09-12 15:08:27 +02:00
29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
--- a/net/minecraft/server/TagsServer.java
|
|
+++ b/net/minecraft/server/TagsServer.java
|
|
@@ -9,6 +9,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::c, iregistry::get, s, false, s1);
|
|
@@ -27,7 +28,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));
|
|
}
|
|
@@ -47,7 +48,7 @@
|
|
list.add(this.a.fromId(packetdataserializer.g()));
|
|
}
|
|
|
|
- this.c().put(minecraftkey, Tag.a.a().a((Collection) list).b(minecraftkey));
|
|
+ this.c().put(minecraftkey, (Tag<T>) Tag.a.a().a((Collection) list).b(minecraftkey)); // CraftBukkit - decompile error
|
|
}
|
|
|
|
}
|