Skip to content

Commit

Permalink
Fix no skin issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightoner committed Jul 21, 2015
1 parent f310fe3 commit 1e5de0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/net/md_5/itag/iTag.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ private WrappedGameProfile getSentName(int sentEntityId, WrappedGameProfile sent
AsyncPlayerReceiveNameTagEvent newEvent = new AsyncPlayerReceiveNameTagEvent( destinationPlayer, namedPlayer, oldEvent.getTag(), UUID.fromString( builtUUID.toString() ) );
getServer().getPluginManager().callEvent( newEvent );

return new WrappedGameProfile( newEvent.getUUID(), newEvent.getTag().substring( 0, Math.min( newEvent.getTag().length(), 16 ) ) );
WrappedGameProfile newProfile = new WrappedGameProfile( newEvent.getUUID(), newEvent.getTag().substring( 0, Math.min( newEvent.getTag().length(), 16 ) ) );
if (sent.getProperties().containsKey("textures"))
newProfile.getProperties().putAll("textures", sent.getProperties().get("textures"));
return newProfile;
}

public void refreshPlayer(Player player)
Expand Down

0 comments on commit 1e5de0d

Please sign in to comment.