aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZach <[email protected]>2017-03-18 20:47:19 -0500
committerGitHub <[email protected]>2017-03-18 20:47:19 -0500
commit2935dbafdb2bad867ad206531a0c3138fd880313 (patch)
tree8c7e141922f66f123d31a13a6b8290aa1aec3603
parenta30343c85e435c6b873f4f5f698b9cf813a8f201 (diff)
parent02afedb6026aa29f2322eb32bd4a783dd5e26d7b (diff)
downloadPaper-2935dbafdb2bad867ad206531a0c3138fd880313.tar.gz
Paper-2935dbafdb2bad867ad206531a0c3138fd880313.zip
Merge pull request #638 from electronicboy/master
Ensure that the world of a dead entity is not changed in a portal
-rw-r--r--Spigot-Server-Patches/0213-Do-not-allow-portals-to-move-dead-entities-across-wo.patch (renamed from Spigot-Server-Patches/0213-Fix-a-duplicate-alive-entity-on-second-world.patch)19
1 files changed, 16 insertions, 3 deletions
diff --git a/Spigot-Server-Patches/0213-Fix-a-duplicate-alive-entity-on-second-world.patch b/Spigot-Server-Patches/0213-Do-not-allow-portals-to-move-dead-entities-across-wo.patch
index 2f21947b7b..4db71dd305 100644
--- a/Spigot-Server-Patches/0213-Fix-a-duplicate-alive-entity-on-second-world.patch
+++ b/Spigot-Server-Patches/0213-Do-not-allow-portals-to-move-dead-entities-across-wo.patch
@@ -1,11 +1,11 @@
-From 791a5b0f6feb0c241429bd044f2255ee251c3bc4 Mon Sep 17 00:00:00 2001
+From 9b910d46c99320223dfa35efe4f3453bfa008313 Mon Sep 17 00:00:00 2001
From: Shane Freeder <[email protected]>
Date: Fri, 17 Mar 2017 01:45:15 +0000
-Subject: [PATCH] Fix a duplicate alive entity on second world
+Subject: [PATCH] Do not allow portals to move dead entities across worlds
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
-index 0e1d9817b..385329774 100644
+index 0e1d9817..38532977 100644
--- a/src/main/java/net/minecraft/server/Entity.java
+++ b/src/main/java/net/minecraft/server/Entity.java
@@ -2325,7 +2325,7 @@ public abstract class Entity implements ICommandListener {
@@ -39,6 +39,19 @@ index 0e1d9817b..385329774 100644
boolean flag = entity.attachedToPlayer;
entity.attachedToPlayer = true;
+diff --git a/src/main/java/net/minecraft/server/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java
+index a9d59bbf..2d8717f4 100644
+--- a/src/main/java/net/minecraft/server/PlayerList.java
++++ b/src/main/java/net/minecraft/server/PlayerList.java
+@@ -987,7 +987,7 @@ public abstract class PlayerList {
+ worldserver.methodProfiler.b();
+ }
+
+- entity.spawnIn(worldserver1);
++ if (!entity.dead) entity.spawnIn(worldserver1); // Paper - Do not move dead entities
+ // CraftBukkit end
+ }
+
--
2.12.0