papermc/CraftBukkit-Patches/0065-Fix-Entity-Persistance.patch

22 lines
957 B
Diff

From 60f414fa65a5d1d43bbc7174ab8f747ad49d1dc9 Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au>
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