summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorAdam Thomas <aet2505@gmail.com>2014-11-30 20:12:54 +0000
committerAdam Thomas <aet2505@gmail.com>2014-11-30 20:12:54 +0000
commitcc9b479fe6379aa95d4da05e96131c77df3e650d (patch)
tree61158f27daa402f1ecf7e8cf17c581bf6399d04a /src/main/java
parentcd65011eacafd4e23cff20b62b029321f3cefcaa (diff)
downloadcraftbukkit-cc9b479fe6379aa95d4da05e96131c77df3e650d.tar
craftbukkit-cc9b479fe6379aa95d4da05e96131c77df3e650d.tar.gz
craftbukkit-cc9b479fe6379aa95d4da05e96131c77df3e650d.tar.lz
craftbukkit-cc9b479fe6379aa95d4da05e96131c77df3e650d.tar.xz
craftbukkit-cc9b479fe6379aa95d4da05e96131c77df3e650d.zip
Fix show player
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
index 0f0e160b..3b9bfecc 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
@@ -899,12 +899,13 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
EntityTracker tracker = ((WorldServer) entity.world).tracker;
EntityPlayer other = ((CraftPlayer) player).getHandle();
+
+ getHandle().playerConnection.sendPacket(new PacketPlayOutPlayerInfo(EnumPlayerInfoAction.ADD_PLAYER, other));
+
EntityTrackerEntry entry = (EntityTrackerEntry) tracker.trackedEntities.get(other.getId());
if (entry != null && !entry.trackedPlayers.contains(getHandle())) {
entry.updatePlayer(getHandle());
}
-
- getHandle().playerConnection.sendPacket(new PacketPlayOutPlayerInfo(EnumPlayerInfoAction.ADD_PLAYER, other));
}
public void removeDisconnectingPlayer(Player player) {