2018-10-21 21:27:53 +02:00
|
|
|
From f5ffd1e9a4b8fbb7ca801c7c02f429a4906badb0 Mon Sep 17 00:00:00 2001
|
2018-09-28 19:58:06 +02:00
|
|
|
From: BillyGalbreath <Blake.Galbreath@GMail.com>
|
|
|
|
Date: Fri, 28 Sep 2018 12:27:54 -0500
|
|
|
|
Subject: [PATCH] Fix turtle lag
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityTurtle.java b/src/main/java/net/minecraft/server/EntityTurtle.java
|
2018-10-21 21:27:53 +02:00
|
|
|
index 1b09f577..4f5592d1 100644
|
2018-09-28 19:58:06 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityTurtle.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityTurtle.java
|
2018-09-29 03:27:40 +02:00
|
|
|
@@ -599,7 +599,7 @@ public class EntityTurtle extends EntityAnimal {
|
|
|
|
++this.d;
|
|
|
|
}
|
2018-09-28 19:58:06 +02:00
|
|
|
|
2018-09-29 03:27:40 +02:00
|
|
|
- if (this.a.dA() || this.a.getNavigation().p()) {
|
|
|
|
+ if (/*this.a.dA() ||*/ this.a.getNavigation().p()) { // Paper - Fix GH-1501
|
|
|
|
Vec3D vec3d = RandomPositionGenerator.a((EntityCreature) this.a, 16, 3, new Vec3D((double) blockposition.getX(), (double) blockposition.getY(), (double) blockposition.getZ()), 0.3141592741012573D);
|
2018-09-28 19:58:06 +02:00
|
|
|
|
2018-09-29 03:27:40 +02:00
|
|
|
if (vec3d == null) {
|
|
|
|
@@ -656,7 +656,7 @@ public class EntityTurtle extends EntityAnimal {
|
2018-09-28 19:58:06 +02:00
|
|
|
}
|
|
|
|
|
2018-09-29 03:27:40 +02:00
|
|
|
public void e() {
|
|
|
|
- if (this.a.dA() || this.a.getNavigation().p()) {
|
|
|
|
+ if (/*this.a.dA() ||*/ this.a.getNavigation().p()) { // Paper - Fix GH-1501
|
|
|
|
BlockPosition blockposition = this.a.dC();
|
|
|
|
Vec3D vec3d = RandomPositionGenerator.a((EntityCreature) this.a, 16, 3, new Vec3D((double) blockposition.getX(), (double) blockposition.getY(), (double) blockposition.getZ()), 0.3141592741012573D);
|
|
|
|
|
2018-09-28 19:58:06 +02:00
|
|
|
--
|
2018-10-21 21:27:53 +02:00
|
|
|
2.19.1
|
2018-09-28 19:58:06 +02:00
|
|
|
|