mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-04 10:11:29 +01:00
12 lines
468 B
Diff
12 lines
468 B
Diff
|
--- 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_));
|
||
|
}
|
||
|
|