diff options
author | Thinkofdeath <thinkofdeath@spigotmc.org> | 2015-02-26 22:41:06 +0000 |
---|---|---|
committer | Thinkofdeath <thinkofdeath@spigotmc.org> | 2015-03-04 09:48:58 +0000 |
commit | d8a9c7be4227b2243968b63ab7cc7a00098c93ad (patch) | |
tree | 554a08a5f23ffa5dd66a28247d6358515b1ffb7a /nms-patches/EntityTracker.patch | |
parent | 33d5de312e9fcc8aec3fc53136658cb6920562aa (diff) | |
download | craftbukkit-d8a9c7be4227b2243968b63ab7cc7a00098c93ad.tar craftbukkit-d8a9c7be4227b2243968b63ab7cc7a00098c93ad.tar.gz craftbukkit-d8a9c7be4227b2243968b63ab7cc7a00098c93ad.tar.lz craftbukkit-d8a9c7be4227b2243968b63ab7cc7a00098c93ad.tar.xz craftbukkit-d8a9c7be4227b2243968b63ab7cc7a00098c93ad.zip |
Update to Minecraft 1.8.3
Diffstat (limited to 'nms-patches/EntityTracker.patch')
-rw-r--r-- | nms-patches/EntityTracker.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nms-patches/EntityTracker.patch b/nms-patches/EntityTracker.patch new file mode 100644 index 00000000..54bdcca2 --- /dev/null +++ b/nms-patches/EntityTracker.patch @@ -0,0 +1,26 @@ +--- /home/matt/mc-dev-private//net/minecraft/server/EntityTracker.java 2015-02-26 22:40:22.719608138 +0000 ++++ src/main/java/net/minecraft/server/EntityTracker.java 2015-02-26 22:40:22.719608138 +0000 +@@ -14,7 +14,7 @@ + private static final Logger a = LogManager.getLogger(); + private final WorldServer world; + private Set<EntityTrackerEntry> c = Sets.newHashSet(); +- private IntHashMap<EntityTrackerEntry> trackedEntities = new IntHashMap(); ++ public IntHashMap<EntityTrackerEntry> trackedEntities = new IntHashMap(); // CraftBukkit - public + private int e; + + public EntityTracker(WorldServer worldserver) { +@@ -113,11 +113,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 + ")"; + } + |