Paper/Spigot-Server-Patches/0379-Fix-turtle-lag.patch
Aikar b62dfa0bf9
Updated Upstream (Bukkit/CraftBukkit)
Upstream has released updates that appears to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
39ce5d3a SPIGOT-4399: ItemMeta.equals broken with AttributeModifiers

CraftBukkit Changes:
1cf8b5dc SPIGOT-4400: Populators running on existing chunks
116cb9a1 SPIGOT-4399: Add attribute modifier equality test
5ee1c18a SPIGOT-4398: Set ASM7_EXPERIMENTAL flag
2018-09-28 19:31:59 -04:00

31 lines
1.1 KiB
Diff

From 22d541c4acb10c02491d426d9d43961369d6a7a0 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..b515eeb230 100644
--- a/src/main/java/net/minecraft/server/EntityTurtle.java
+++ b/src/main/java/net/minecraft/server/EntityTurtle.java
@@ -68,6 +68,7 @@ public class EntityTurtle extends EntityAnimal {
this.datawatcher.set(EntityTurtle.bI, Boolean.valueOf(flag));
}
+ private boolean isTravelling() { return dI(); } // Paper - OBFHELPER
private boolean dI() {
return ((Boolean) this.datawatcher.get(EntityTurtle.bJ)).booleanValue();
}
@@ -633,7 +634,7 @@ public class EntityTurtle extends EntityAnimal {
}
public boolean a() {
- return !this.a.dH() && !this.a.dy() && this.a.isInWater();
+ return !this.a.isTravelling() && !this.a.dH() && !this.a.dy() && this.a.isInWater(); // Paper
}
public void c() {
--
2.19.0