mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 04:56:50 +01:00
Add my "fix" for EntityPersistance, I do believe that removing this check is incorrect and the result of a slight hiccup by Bukkit.
This commit is contained in:
parent
124d4867c7
commit
87854c51ab
1 changed files with 22 additions and 0 deletions
22
CraftBukkit-Patches/0065-Fix-Entity-Persistance.patch
Normal file
22
CraftBukkit-Patches/0065-Fix-Entity-Persistance.patch
Normal file
|
@ -0,0 +1,22 @@
|
|||
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
|
||||
|
Loading…
Reference in a new issue