(AbstractClientPlayer player)
| 81 | } |
| 82 | |
| 83 | public static void reloadCape(AbstractClientPlayer player) |
| 84 | { |
| 85 | String s = player.getNameClear(); |
| 86 | ResourceLocation resourcelocation = new ResourceLocation("capeof/" + s); |
| 87 | TextureManager texturemanager = Config.getTextureManager(); |
| 88 | ITextureObject itextureobject = texturemanager.getTexture(resourcelocation); |
| 89 | |
| 90 | if (itextureobject instanceof SimpleTexture) |
| 91 | { |
| 92 | SimpleTexture simpletexture = (SimpleTexture)itextureobject; |
| 93 | simpletexture.deleteGlTexture(); |
| 94 | texturemanager.deleteTexture(resourcelocation); |
| 95 | } |
| 96 | |
| 97 | player.setLocationOfCape((ResourceLocation)null); |
| 98 | player.setElytraOfCape(false); |
| 99 | downloadCape(player); |
| 100 | } |
| 101 | } |
no test coverage detected