iLexiconn / LLibrary

The lightweight Minecraft modding library.
https://github.com/iLexiconn/LLibrary/wiki
GNU Lesser General Public License v2.1
52 stars 31 forks source link

Player Skin Map #157

Open Pi-Man opened 5 years ago

Pi-Man commented 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

public Map<String, RenderPlayer> getSkinMap() { return (Map<String, RenderPlayer>) java.util.Collections.unmodifiableMap(skinMap); }