Fix warnings when reloading vanilla client skin.

This commit is contained in:
Matthew Messinger 2018-08-26 15:31:46 -04:00
parent a022d3758a
commit dfcae69ab7

View file

@ -96,6 +96,10 @@ public abstract class MixinNetworkPlayerInfo implements INetworkPlayerInfo {
public void reloadTextures() {
synchronized (this) {
this.playerTexturesLoaded = false;
if (this.gameProfile.getId().equals(Minecraft.getMinecraft().getSession().getProfile().getId())) {
// local client skin doesn't have a signature.
this.gameProfile.getProperties().removeAll("textures");
}
}
}