2016-03-12 02:13:31 +00:00
|
|
|
From 85da9e1e002a07a334b87d47c7d618e152204c8b Mon Sep 17 00:00:00 2001
|
2016-01-04 06:23:17 +00:00
|
|
|
From: Aikar <aikar@aikar.co>
|
2016-02-29 23:09:49 +00:00
|
|
|
Date: Thu, 3 Mar 2016 00:12:23 -0600
|
2016-01-04 06:23:17 +00:00
|
|
|
Subject: [PATCH] Process Entity Chunk Registration on Teleport
|
|
|
|
|
|
|
|
Fixes many issues with entities not being properly "switched" to their new chunk on teleport
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
|
2016-03-12 02:13:31 +00:00
|
|
|
index f80ac2c..3d9a454 100644
|
2016-01-04 06:23:17 +00:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
|
2016-03-12 02:13:31 +00:00
|
|
|
@@ -252,6 +252,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
2016-01-04 06:23:17 +00:00
|
|
|
// entity.world = ((CraftWorld) location.getWorld()).getHandle();
|
|
|
|
// Spigot end
|
|
|
|
entity.setLocation(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
|
2016-02-29 23:09:49 +00:00
|
|
|
+ entity.world.entityJoinedWorld(entity, false); // Paper - Fix issues with entities not being switched to their new chunk
|
2016-01-04 06:23:17 +00:00
|
|
|
// entity.setLocation() throws no event, and so cannot be cancelled
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
--
|
2016-02-29 23:09:49 +00:00
|
|
|
2.7.2
|
2016-01-04 06:23:17 +00:00
|
|
|
|