mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
b01c811c2f
== AT == public net.minecraft.server.level.ServerChunkCache mainThread public net.minecraft.server.level.ServerLevel chunkSource public org.bukkit.craftbukkit.inventory.CraftItemStack handle public net.minecraft.server.level.ChunkMap getVisibleChunkIfPresent(J)Lnet/minecraft/server/level/ChunkHolder; public net.minecraft.server.level.ServerChunkCache mainThreadProcessor public net.minecraft.server.level.ServerChunkCache$MainThreadExecutor public net.minecraft.world.level.chunk.LevelChunkSection states
20 lines
670 B
Diff
20 lines
670 B
Diff
--- a/net/minecraft/Util.java
|
|
+++ b/net/minecraft/Util.java
|
|
@@ -136,7 +136,7 @@
|
|
}
|
|
|
|
public static long getNanos() {
|
|
- return timeSource.getAsLong();
|
|
+ return System.nanoTime(); // Paper
|
|
}
|
|
|
|
public static long getEpochMillis() {
|
|
@@ -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_));
|
|
}
|
|
|