2016-04-12 18:31:54 +02:00
|
|
|
From 92192f36f2eed7394532ea5778417ea4668afebe Mon Sep 17 00:00:00 2001
|
2016-04-09 20:48:06 +02:00
|
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
|
|
|
Date: Thu, 7 Apr 2016 18:28:06 -0500
|
|
|
|
Subject: [PATCH] 16w14a memory cleanup
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PathfinderAbstract.java b/src/main/java/net/minecraft/server/PathfinderAbstract.java
|
2016-04-09 20:54:47 +02:00
|
|
|
index 51f3758..acbc70a 100644
|
2016-04-09 20:48:06 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/PathfinderAbstract.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PathfinderAbstract.java
|
2016-04-09 20:54:47 +02:00
|
|
|
@@ -23,7 +23,12 @@ public abstract class PathfinderAbstract {
|
2016-04-09 20:48:06 +02:00
|
|
|
this.f = MathHelper.d(entityinsentient.width + 1.0F);
|
|
|
|
}
|
|
|
|
|
|
|
|
- public void a() { this.a = (IBlockAccess) null; } // CraftBukkit - don't leak Chunk Cache
|
|
|
|
+ // Paper start - 16w14a backports
|
|
|
|
+ public void a() {
|
|
|
|
+ this.a = (IBlockAccess) null; // CraftBukkit - don't leak Chunk Cache
|
|
|
|
+ this.b = null;
|
|
|
|
+ }
|
2016-04-09 20:54:47 +02:00
|
|
|
+ // Paper end
|
2016-04-09 20:48:06 +02:00
|
|
|
|
|
|
|
protected PathPoint a(int i, int j, int k) {
|
|
|
|
int l = PathPoint.b(i, j, k);
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PathfinderWater.java b/src/main/java/net/minecraft/server/PathfinderWater.java
|
|
|
|
index dc7f310..c1df684 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/PathfinderWater.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PathfinderWater.java
|
|
|
|
@@ -4,6 +4,8 @@ public class PathfinderWater extends PathfinderAbstract {
|
|
|
|
|
|
|
|
public PathfinderWater() {}
|
|
|
|
|
|
|
|
+ // Paper start - 16w14a backports
|
|
|
|
+ /*
|
|
|
|
public void a(IBlockAccess iblockaccess, EntityInsentient entityinsentient) {
|
|
|
|
super.a(iblockaccess, entityinsentient);
|
|
|
|
}
|
|
|
|
@@ -11,6 +13,8 @@ public class PathfinderWater extends PathfinderAbstract {
|
|
|
|
public void a() {
|
|
|
|
super.a();
|
|
|
|
}
|
|
|
|
+ */
|
|
|
|
+ // Paper end
|
|
|
|
|
|
|
|
public PathPoint b() {
|
|
|
|
return this.a(MathHelper.floor(this.b.getBoundingBox().a), MathHelper.floor(this.b.getBoundingBox().b + 0.5D), MathHelper.floor(this.b.getBoundingBox().c));
|
|
|
|
--
|
|
|
|
2.8.0
|
|
|
|
|