Archiviert
13
0
Dieses Repository wurde am 2024-12-25 archiviert. Du kannst Dateien ansehen und es klonen, aber nicht pushen oder Issues/Pull-Requests öffnen.
Paper-Old/nms-patches/EntityTracker.patch

27 Zeilen
1.3 KiB
Diff

2015-05-25 12:37:24 +02:00
--- 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) {
2016-11-17 02:41:03 +01:00
@@ -120,11 +120,12 @@
2015-02-26 23:41:06 +01:00
CrashReportSystemDetails crashreportsystemdetails = crashreport.a("Entity To Track");
crashreportsystemdetails.a("Tracking range", (Object) (i + " blocks"));
+ final int finalI = i; // CraftBukkit - fix decompile error
2016-05-10 13:47:39 +02:00
crashreportsystemdetails.a("Update interval", new CrashReportCallable() {
2015-02-26 23:41:06 +01:00
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 + ")";
}