Archiviert
13
0
Dieses Repository wurde am 2024-12-25 archiviert. Du kannst Dateien ansehen und es klonen, aber nicht pushen oder Issues/Pull-Requests öffnen.
Paper-Old/Spigot-Server-Patches/0057-Process-Entity-Chunk-Registration-on-Teleport.patch

23 Zeilen
1.1 KiB
Diff

2016-03-31 02:50:23 +02:00
From 8cdfbcfe70be7d3748aa4b92e6a0a1bf48a03e51 Mon Sep 17 00:00:00 2001
2016-01-04 07:23:17 +01:00
From: Aikar <aikar@aikar.co>
2016-03-01 00:09:49 +01:00
Date: Thu, 3 Mar 2016 00:12:23 -0600
2016-01-04 07:23:17 +01: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
index f4168c4..b422b75 100644
2016-01-04 07:23:17 +01:00
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
2016-03-25 02:23:23 +01:00
@@ -242,6 +242,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
2016-01-04 07:23:17 +01:00
// entity.world = ((CraftWorld) location.getWorld()).getHandle();
// Spigot end
entity.setLocation(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
2016-03-01 00:09:49 +01:00
+ entity.world.entityJoinedWorld(entity, false); // Paper - Fix issues with entities not being switched to their new chunk
2016-01-04 07:23:17 +01:00
// entity.setLocation() throws no event, and so cannot be cancelled
return true;
}
--
2016-03-31 02:50:23 +02:00
2.8.0
2016-01-04 07:23:17 +01:00