@@ -0,0 +1,40 @@
|
||||
--- a/net/minecraft/core/RegistryMaterials.java
|
||||
+++ b/net/minecraft/core/RegistryMaterials.java
|
||||
@@ -201,7 +201,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
- return SystemUtils.getRandom(this.randomCache, random);
|
||||
+ return (T) SystemUtils.getRandom(this.randomCache, random); // CraftBukkit - decompile error
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -228,7 +228,7 @@
|
||||
return registrymaterials;
|
||||
}, (registrymaterials) -> {
|
||||
Builder<RegistryMaterials.a<T>> builder = ImmutableList.builder();
|
||||
- Iterator iterator = registrymaterials.iterator();
|
||||
+ Iterator<T> iterator = registrymaterials.iterator(); // CraftBukkit - decompile error
|
||||
|
||||
while (iterator.hasNext()) {
|
||||
T t0 = iterator.next();
|
||||
@@ -257,8 +257,10 @@
|
||||
});
|
||||
}
|
||||
|
||||
- private static final class a extends Record {
|
||||
+ // CraftBukkit start
|
||||
+ private static final record a<T>(ResourceKey<T> key, int id, T value) {
|
||||
|
||||
+ /*
|
||||
private final ResourceKey<T> key;
|
||||
private final int id;
|
||||
private final T value;
|
||||
@@ -292,5 +294,7 @@
|
||||
public T value() {
|
||||
return this.value;
|
||||
}
|
||||
+ */
|
||||
+ // CraftBukkit end
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user