Fix guiskins before world opens

This commit is contained in:
Matthew Messinger 2015-08-02 00:07:29 -04:00
parent 3316f7b695
commit 2610610c76

View file

@ -78,6 +78,9 @@ public final class HDSkinManager {
private static String resolvePlayerIdFromHash(String hash) { private static String resolvePlayerIdFromHash(String hash) {
Minecraft mc = Minecraft.getMinecraft(); Minecraft mc = Minecraft.getMinecraft();
if (mc.theWorld == null) {
return null;
}
Collection<NetworkPlayerInfo> playersInfo = mc.getNetHandler().func_175106_d(); Collection<NetworkPlayerInfo> playersInfo = mc.getNetHandler().func_175106_d();
String uuid; String uuid;
// players // players