mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 02:55:47 +01:00
Remove 0017 - potentially causing issues on respawn with plugins
This commit is contained in:
parent
980aa63c74
commit
f78b1cd8d4
@ -1,31 +0,0 @@
|
||||
From 09f43d297f1e89124a97532b0c02750b0f154fe9 Mon Sep 17 00:00:00 2001
|
||||
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
|
||||
index a4a59ee..a723f3b 100644
|
||||
--- a/src/main/java/net/minecraft/server/PlayerList.java
|
||||
+++ b/src/main/java/net/minecraft/server/PlayerList.java
|
||||
@@ -452,7 +452,7 @@ public abstract class PlayerList {
|
||||
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();
|
||||
@@ -547,7 +547,7 @@ public abstract class PlayerList {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user