2015-03-08 01:16:09 +00:00
|
|
|
From 0d6c8bb4db762171aa4466e1d26a2b285fdc23df Mon Sep 17 00:00:00 2001
|
2014-06-28 22:38:47 +00:00
|
|
|
From: T00thpick1 <t00thpick1dirko@gmail.com>
|
2015-03-08 01:16:09 +00:00
|
|
|
Date: Sat, 7 Mar 2015 20:54:33 -0600
|
2014-06-28 22:38:47 +00:00
|
|
|
Subject: [PATCH] Do not remove player in world change
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java
|
2015-03-08 01:16:09 +00:00
|
|
|
index c7d26ce..d93b00c 100644
|
2014-06-28 22:38:47 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerList.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerList.java
|
2015-03-08 01:16:09 +00:00
|
|
|
@@ -507,7 +507,7 @@ public abstract class PlayerList {
|
2014-11-28 01:17:45 +00:00
|
|
|
entityplayer.u().getTracker().untrackPlayer(entityplayer);
|
|
|
|
// entityplayer.u().getTracker().untrackEntity(entityplayer); // CraftBukkit
|
|
|
|
entityplayer.u().getPlayerChunkMap().removePlayer(entityplayer);
|
2014-06-28 22:38:47 +00:00
|
|
|
- this.players.remove(entityplayer);
|
2015-03-08 01:16:09 +00:00
|
|
|
+ //this.players.remove(entityplayer); // PaperSpigot - Don't remove player in world change. Fixes BUKKIT-4561, BUKKIT-4082, and BUKKIT-2094
|
2014-06-28 22:38:47 +00:00
|
|
|
this.server.getWorldServer(entityplayer.dimension).removeEntity(entityplayer);
|
2014-11-28 01:17:45 +00:00
|
|
|
BlockPosition blockposition = entityplayer.getBed();
|
2014-06-28 22:38:47 +00:00
|
|
|
boolean flag1 = entityplayer.isRespawnForced();
|
2015-03-08 01:16:09 +00:00
|
|
|
@@ -601,7 +601,7 @@ public abstract class PlayerList {
|
|
|
|
|
2014-06-28 22:38:47 +00:00
|
|
|
if (!entityplayer.playerConnection.isDisconnected()) {
|
|
|
|
worldserver.getPlayerChunkMap().addPlayer(entityplayer1);
|
2015-03-08 01:16:09 +00:00
|
|
|
- worldserver.addEntity(entityplayer1);
|
|
|
|
+ //worldserver.addEntity(entityplayer1); // PaperSpigot - Don't remove player in world change. Fixes BUKKIT-4561, BUKKIT-4082, and BUKKIT-2094
|
|
|
|
this.players.add(entityplayer1);
|
|
|
|
this.j.put(entityplayer1.getUniqueID(), entityplayer1);
|
2014-06-28 22:38:47 +00:00
|
|
|
}
|
|
|
|
--
|
2015-03-08 01:16:09 +00:00
|
|
|
1.9.1
|
2014-06-28 22:38:47 +00:00
|
|
|
|