From 1e5de0dbaa2a25aaeedf1594167d7bde68d369f0 Mon Sep 17 00:00:00 2001 From: Lightoner Date: Tue, 21 Jul 2015 18:49:03 +0200 Subject: [PATCH] Fix no skin issue --- src/main/java/net/md_5/itag/iTag.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/md_5/itag/iTag.java b/src/main/java/net/md_5/itag/iTag.java index 5004425..2afb41b 100644 --- a/src/main/java/net/md_5/itag/iTag.java +++ b/src/main/java/net/md_5/itag/iTag.java @@ -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)