mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-04 10:11:29 +01:00
bdd77afa95
improved the water code so that immunity wont trigger if the entity has the water pathfinder system active, so this improves support for all entities that know how to behave in water. Merged 2 EAR patches together, and removed an MCUtil method that doesnt have a purpose anymore
29 lines
No EOL
1.5 KiB
Diff
29 lines
No EOL
1.5 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
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
|
|
index 1b09f577e9..4f5592d1c9 100644
|
|
--- a/src/main/java/net/minecraft/server/EntityTurtle.java
|
|
+++ b/src/main/java/net/minecraft/server/EntityTurtle.java
|
|
@@ -0,0 +0,0 @@ public class EntityTurtle extends EntityAnimal {
|
|
++this.d;
|
|
}
|
|
|
|
- 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);
|
|
|
|
if (vec3d == null) {
|
|
@@ -0,0 +0,0 @@ public class EntityTurtle extends EntityAnimal {
|
|
}
|
|
|
|
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);
|
|
|
|
--
|