Paper/nms-patches/EntityTracker.patch

27 Zeilen
1.3 KiB
Diff

--- 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 + ")";
}