From 87854c51abde48504f63627072b3142d73c81a66 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 5 Jul 2013 21:56:07 +1000 Subject: [PATCH] Add my "fix" for EntityPersistance, I do believe that removing this check is incorrect and the result of a slight hiccup by Bukkit. --- .../0065-Fix-Entity-Persistance.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 CraftBukkit-Patches/0065-Fix-Entity-Persistance.patch diff --git a/CraftBukkit-Patches/0065-Fix-Entity-Persistance.patch b/CraftBukkit-Patches/0065-Fix-Entity-Persistance.patch new file mode 100644 index 0000000..a407cc6 --- /dev/null +++ b/CraftBukkit-Patches/0065-Fix-Entity-Persistance.patch @@ -0,0 +1,22 @@ +From 60f414fa65a5d1d43bbc7174ab8f747ad49d1dc9 Mon Sep 17 00:00:00 2001 +From: md_5 +Date: Fri, 5 Jul 2013 21:55:00 +1000 +Subject: [PATCH] Fix Entity Persistance + + +diff --git a/src/main/java/net/minecraft/server/EntityInsentient.java b/src/main/java/net/minecraft/server/EntityInsentient.java +index f913a40..a91c5d6 100644 +--- a/src/main/java/net/minecraft/server/EntityInsentient.java ++++ b/src/main/java/net/minecraft/server/EntityInsentient.java +@@ -390,7 +390,7 @@ public abstract class EntityInsentient extends EntityLiving { + double d2 = entityhuman.locZ - this.locZ; + double d3 = d0 * d0 + d1 * d1 + d2 * d2; + +- if (d3 > 16384.0D) { // CraftBukkit - remove isTypeNotPersistent() check ++ if (this.isTypeNotPersistent() && d3 > 16384.0D) { // Spigot - md_5: I think CraftBukkit dun derped by altering this + this.die(); + } + +-- +1.8.1.2 +