2016-03-31 01:36:20 +02:00
|
|
|
--- a/net/minecraft/Util.java
|
|
|
|
+++ b/net/minecraft/Util.java
|
2016-03-29 02:55:47 +02:00
|
|
|
@@ -136,7 +136,7 @@
|
|
|
|
}
|
|
|
|
|
|
|
|
public static long getNanos() {
|
|
|
|
- return timeSource.getAsLong();
|
|
|
|
+ return System.nanoTime(); // Paper
|
|
|
|
}
|
|
|
|
|
|
|
|
public static long getEpochMillis() {
|
2016-03-31 01:36:20 +02:00
|
|
|
@@ -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_));
|
|
|
|
}
|
|
|
|
|