From 6a2a8d0d3f9acf845f6cde963a0a785abbe9dd56 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 6 Mar 2016 16:25:50 +1100 Subject: [PATCH] Remove redundant syncInventory on world change By: md_5 --- paper-server/nms-patches/PlayerList.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paper-server/nms-patches/PlayerList.patch b/paper-server/nms-patches/PlayerList.patch index 9af00a61c6..80e7bd838f 100644 --- a/paper-server/nms-patches/PlayerList.patch +++ b/paper-server/nms-patches/PlayerList.patch @@ -473,13 +473,14 @@ - worldserver.addEntity(entityplayer1); - this.players.add(entityplayer1); - this.j.put(entityplayer1.getUniqueID(), entityplayer1); +- entityplayer1.syncInventory(); + if (!entityplayer.playerConnection.isDisconnected()) { + worldserver.getPlayerChunkMap().addPlayer(entityplayer1); + worldserver.addEntity(entityplayer1); + this.players.add(entityplayer1); + this.j.put(entityplayer1.getUniqueID(), entityplayer1); + } - entityplayer1.syncInventory(); ++ // entityplayer1.syncInventory(); entityplayer1.setHealth(entityplayer1.getHealth()); + // Added from changeDimension + updateClient(entityplayer); // Update health, etc...