Mappings Update

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2018-12-26 08:00:00 +11:00
parent 239b2828db
commit d7e312278d
120 changed files with 878 additions and 1619 deletions

View File

@@ -1,6 +1,6 @@
--- a/net/minecraft/server/MethodProfiler.java
+++ b/net/minecraft/server/MethodProfiler.java
@@ -13,6 +13,7 @@
@@ -12,6 +12,7 @@
public class MethodProfiler {
@@ -8,7 +8,7 @@
private static final Logger a = LogManager.getLogger();
private final List<String> b = Lists.newArrayList();
private final List<Long> c = Lists.newArrayList();
@@ -41,6 +42,7 @@
@@ -40,6 +41,7 @@
}
public void a(int i) {
@@ -16,7 +16,7 @@
if (!this.d) {
this.d = true;
this.f.clear();
@@ -52,6 +54,7 @@
@@ -51,6 +53,7 @@
}
public void enter(String s) {
@@ -24,7 +24,7 @@
if (this.d) {
if (!this.e.isEmpty()) {
this.e = this.e + ".";
@@ -64,12 +67,14 @@
@@ -63,12 +66,14 @@
}
public void a(Supplier<String> supplier) {
@@ -39,15 +39,15 @@
if (this.d && !this.c.isEmpty()) {
long i = SystemUtils.getMonotonicNanos();
long j = (Long) this.c.remove(this.c.size() - 1);
@@ -92,6 +97,7 @@
@@ -91,6 +96,7 @@
}
public List<MethodProfiler.ProfilerInfo> b(String s) {
+ if (!ENABLED) return Collections.emptyList(); // CraftBukkit
long i = this.f.containsKey("root") ? (Long) this.f.get("root") : 0L;
long j = this.f.containsKey(s) ? (Long) this.f.get(s) : -1L;
ArrayList arraylist = Lists.newArrayList();
@@ -154,11 +160,13 @@
List<MethodProfiler.ProfilerInfo> list = Lists.newArrayList();
@@ -153,11 +159,13 @@
}
public void exitEnter(String s) {