From a24e98859f74d205f13094eddcc9f095933d5e31 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Sun, 19 May 2019 20:48:54 +0100 Subject: [PATCH] Don't run death logic on dupe entity removals --- .../fixup-Duplicate-UUID-Resolve-Option.patch | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Spigot-Server-Patches/fixup-Duplicate-UUID-Resolve-Option.patch diff --git a/Spigot-Server-Patches/fixup-Duplicate-UUID-Resolve-Option.patch b/Spigot-Server-Patches/fixup-Duplicate-UUID-Resolve-Option.patch new file mode 100644 index 0000000000..0fb7f3f632 --- /dev/null +++ b/Spigot-Server-Patches/fixup-Duplicate-UUID-Resolve-Option.patch @@ -0,0 +1,29 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Shane Freeder +Date: Sun, 19 May 2019 20:46:35 +0100 +Subject: [PATCH] fixup! Duplicate UUID Resolve Option + + +diff --git a/src/main/java/net/minecraft/server/PlayerChunkMap.java b/src/main/java/net/minecraft/server/PlayerChunkMap.java +index 292fa782d..31fe5f5e6 100644 +--- a/src/main/java/net/minecraft/server/PlayerChunkMap.java ++++ b/src/main/java/net/minecraft/server/PlayerChunkMap.java +@@ -0,0 +0,0 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d { + && entity.getBukkitEntity().getLocation().distance(other.getBukkitEntity().getLocation()) < world.paperConfig.duplicateUUIDDeleteRange + ) { + if (World.DEBUG_ENTITIES) LOGGER.warn("[DUPE-UUID] Duplicate UUID found used by " + other + ", deleted entity " + entity + " because it was near the duplicate and likely an actual duplicate. See https://github.com/PaperMC/Paper/issues/1223 for discussion on what this is about."); +- entity.die(); ++ entity.dead = true; + iterator.remove(); + continue; + } +@@ -0,0 +0,0 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d { + } + case DELETE: { + if (World.DEBUG_ENTITIES) LOGGER.warn("[DUPE-UUID] Duplicate UUID found used by " + other + ", deleted entity " + entity + ". See https://github.com/PaperMC/Paper/issues/1223 for discussion on what this is about."); +- entity.die(); ++ entity.dead = true; + iterator.remove(); + break; + } +-- \ No newline at end of file