diff options
Diffstat (limited to 'nms-patches/MethodProfiler.patch')
-rw-r--r-- | nms-patches/MethodProfiler.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nms-patches/MethodProfiler.patch b/nms-patches/MethodProfiler.patch index 9c9108ff..883f9d9a 100644 --- a/nms-patches/MethodProfiler.patch +++ b/nms-patches/MethodProfiler.patch @@ -21,7 +21,7 @@ public void a(String s) { + if (!ENABLED) return; // CraftBukkit if (this.a) { - if (this.e.length() > 0) { + if (!this.e.isEmpty()) { this.e = this.e + "."; @@ -40,6 +43,7 @@ } @@ -51,7 +51,7 @@ public String c() { + if (!ENABLED) return "[DISABLED]"; // CraftBukkit - return this.c.size() == 0 ? "[UNKNOWN]" : (String) this.c.get(this.c.size() - 1); + return this.c.isEmpty() ? "[UNKNOWN]" : (String) this.c.get(this.c.size() - 1); } @@ -152,7 +158,7 @@ |