summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityTracker.patch
blob: 1e0a52a9e33fc52233c92ef348f6bc6735d64a4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- a/net/minecraft/server/EntityTracker.java
+++ b/net/minecraft/server/EntityTracker.java
@@ -91,7 +91,7 @@
         } else if (entity instanceof EntityExperienceOrb) {
             this.addEntity(entity, 160, 20, true);
         } else if (entity instanceof EntityAreaEffectCloud) {
-            this.addEntity(entity, 160, Integer.MAX_VALUE, true);
+            this.addEntity(entity, 160, 10, true); // CraftBukkit
         } else if (entity instanceof EntityEnderCrystal) {
             this.addEntity(entity, 256, Integer.MAX_VALUE, false);
         } else if (entity instanceof EntityEvokerFangs) {
@@ -120,11 +120,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 CrashReportCallable() {
                 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 + ")";
                     }