Open Pi-Man opened 5 years ago
public static void addPlayerSkinTypeRenderer(String type, RenderPlayer renderPlayer) { ClientProxy.MINECRAFT.getRenderManager().getSkinMap().put(type, renderPlayer); }
will cause a crash when used as getSkinMap() returns an unmodifiable map
getSkinMap()
public Map<String, RenderPlayer> getSkinMap() { return (Map<String, RenderPlayer>) java.util.Collections.unmodifiableMap(skinMap); }
public static void addPlayerSkinTypeRenderer(String type, RenderPlayer renderPlayer) { ClientProxy.MINECRAFT.getRenderManager().getSkinMap().put(type, renderPlayer); }
will cause a crash when used as
getSkinMap()
returns an unmodifiable mappublic Map<String, RenderPlayer> getSkinMap() { return (Map<String, RenderPlayer>) java.util.Collections.unmodifiableMap(skinMap); }