mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Fixed capes :)
This commit is contained in:
1 parent
ba50a947cd
commit
7b38621f77
2 files changed
+6
-3
No files matched your search
@@ -50,6 +50,8 @@ import net.minecraftforge.fml.common.gameevent.TickEvent.Phase;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
import com.mojang.authlib.minecraft.MinecraftProfileTexture;
|
||||
|
||||
/**
|
||||
* Client-side tick handler for Mekanism. Used mainly for the update check upon startup.
|
||||
* @author AidanBrady
|
||||
@@ -402,7 +404,8 @@ public class ClientTickHandler
|
||||
if(obj instanceof NetworkPlayerInfo)
|
||||
{
|
||||
NetworkPlayerInfo info = (NetworkPlayerInfo)obj;
|
||||
ReflectionUtils.setPrivateValue(info, cape, NetworkPlayerInfo.class, ObfuscatedNames.NetworkPlayerInfo_locationCape);
|
||||
Map<MinecraftProfileTexture.Type, ResourceLocation> map = (Map<MinecraftProfileTexture.Type, ResourceLocation>)ReflectionUtils.getPrivateValue(info, NetworkPlayerInfo.class, ObfuscatedNames.NetworkPlayerInfo_playerTextures);
|
||||
map.put(MinecraftProfileTexture.Type.CAPE, cape);
|
||||
}
|
||||
} catch(Exception e) {}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user