MC Dev fixes
This commit is contained in:
parent
769119f918
commit
f829dcd46a
10 changed files with 108 additions and 1 deletions
11
paper-server/patches/sources/net/minecraft/Util.java.patch
Normal file
11
paper-server/patches/sources/net/minecraft/Util.java.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/net/minecraft/Util.java
|
||||
+++ b/net/minecraft/Util.java
|
||||
@@ -537,7 +537,7 @@
|
||||
public static <K extends Enum<K>, V> EnumMap<K, V> makeEnumMap(Class<K> enumClass, Function<K, V> mapper) {
|
||||
EnumMap<K, V> enumMap = new EnumMap<>(enumClass);
|
||||
|
||||
- for (K enum_ : (Enum[])enumClass.getEnumConstants()) {
|
||||
+ for (K enum_ : enumClass.getEnumConstants()) { // Paper - decompile error
|
||||
enumMap.put(enum_, mapper.apply(enum_));
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue