summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityTracker.patch
blob: 56d5f158158cffb7ea0ee6055d1cb8baffe49f68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/net/minecraft/server/EntityTracker.java
+++ b/net/minecraft/server/EntityTracker.java
@@ -117,11 +117,12 @@
             CrashReportSystemDetails crashreportsystemdetails = crashreport.a("Entity To Track");
 
             crashreportsystemdetails.a("Tracking range", (Object) (i + " blocks"));
+            final int finalI = i; // CraftBukkit - fix decompile error
             crashreportsystemdetails.a("Update interval", new Callable() {
                 public String a() throws Exception {
-                    String s = "Once per " + i + " ticks";
+                    String s = "Once per " + finalI + " ticks"; // CraftBukkit
 
-                    if (i == Integer.MAX_VALUE) {
+                    if (finalI == Integer.MAX_VALUE) { // CraftBukkit
                         s = "Maximum (" + s + ")";
                     }