2014-10-25 05:25:14 +02:00
|
|
|
From 82f4ed7a6fe9063beefe686c260e01c703313633 Mon Sep 17 00:00:00 2001
|
2014-06-29 00:38:47 +02:00
|
|
|
From: T00thpick1 <t00thpick1dirko@gmail.com>
|
|
|
|
Date: Mon, 23 Jun 2014 21:37:24 -0500
|
|
|
|
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
|
2014-10-02 23:54:57 +02:00
|
|
|
index 8adf091..79fc999 100644
|
2014-06-29 00:38:47 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerList.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerList.java
|
2014-10-02 23:54:57 +02:00
|
|
|
@@ -463,7 +463,7 @@ public abstract class PlayerList {
|
2014-06-29 00:38:47 +02:00
|
|
|
entityplayer.r().getTracker().untrackPlayer(entityplayer);
|
|
|
|
// entityplayer.r().getTracker().untrackEntity(entityplayer); // CraftBukkit
|
|
|
|
entityplayer.r().getPlayerChunkMap().removePlayer(entityplayer);
|
|
|
|
- this.players.remove(entityplayer);
|
|
|
|
+ // this.players.remove(entityplayer); // PaperSpigot -- Fixes BUKKIT-4561 and BUKKIT-4082 and BUKKIT-2094
|
|
|
|
this.server.getWorldServer(entityplayer.dimension).removeEntity(entityplayer);
|
|
|
|
ChunkCoordinates chunkcoordinates = entityplayer.getBed();
|
|
|
|
boolean flag1 = entityplayer.isRespawnForced();
|
2014-10-02 23:54:57 +02:00
|
|
|
@@ -558,7 +558,7 @@ public abstract class PlayerList {
|
2014-06-29 00:38:47 +02:00
|
|
|
if (!entityplayer.playerConnection.isDisconnected()) {
|
|
|
|
worldserver.getPlayerChunkMap().addPlayer(entityplayer1);
|
|
|
|
worldserver.addEntity(entityplayer1);
|
|
|
|
- this.players.add(entityplayer1);
|
|
|
|
+ // this.players.add(entityplayer1); // PaperSpigot -- Fixes BUKKIT-4561 and BUKKIT-4082 and BUKKIT-2094
|
|
|
|
}
|
|
|
|
// Added from changeDimension
|
|
|
|
this.updateClient(entityplayer1); // Update health, etc...
|
|
|
|
--
|
|
|
|
1.9.1
|
|
|
|
|