Only use stored chunk ref if it matches current chunk registration

Closes #1197

While this really undoes a lot of the desired performance gains avoiding chunk lookups,
we sadly have to accept this because we are seeing lots of bugs with entities.
This commit is contained in:
Aikar
2018-07-08 22:39:46 -04:00
parent 20aba250df
commit 1ba951ee5d
10 changed files with 17 additions and 12 deletions

View File

@@ -22,7 +22,7 @@ requirement, but plugins (such as my own) use this method to
trigger a "reload" of the entity on the client.
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
index fccaebfbd..5d1ea0d55 100644
index 9f2db9025..a96cdcbc6 100644
--- a/src/main/java/net/minecraft/server/Entity.java
+++ b/src/main/java/net/minecraft/server/Entity.java
@@ -0,0 +0,0 @@ public abstract class Entity implements ICommandListener, KeyedObject { // Paper