mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Add missing registerPlayer in CraftPlayer.showPlayer0 (#1051)
This commit is contained in:
parent
71d64fa4f2
commit
7f21066ba1
1 changed files with 3 additions and 2 deletions
|
@ -6,7 +6,7 @@ Subject: [PATCH] Player.setPlayerProfile API
|
|||
This can be useful for changing name or skins after a player has logged in.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java
|
||||
index 4b82e43a8..35fde8b23 100644
|
||||
index 4b82e43a..35fde8b2 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityHuman.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityHuman.java
|
||||
@@ -0,0 +0,0 @@ public abstract class EntityHuman extends EntityLiving {
|
||||
|
@ -19,7 +19,7 @@ index 4b82e43a8..35fde8b23 100644
|
|||
private final ItemCooldown bW;
|
||||
@Nullable
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
||||
index 21631c588..f0e3c2cff 100644
|
||||
index 21631c58..87e31cf0 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
||||
@@ -0,0 +0,0 @@
|
||||
|
@ -54,6 +54,7 @@ index 21631c588..f0e3c2cff 100644
|
|||
- EntityTracker tracker = ((WorldServer) entity.world).tracker;
|
||||
+ // Paper start
|
||||
EntityPlayer other = ((CraftPlayer) player).getHandle();
|
||||
+ registerPlayer(other);
|
||||
+ }
|
||||
+ private void registerPlayer(EntityPlayer other) {
|
||||
+ EntityTracker tracker = ((WorldServer) entity.world).tracker;
|
||||
|
|
Loading…
Reference in a new issue