3D Skins when switching servers sometimes crashes game
R00tB33rMan opened this issue ยท 4 comments
Ok, I think it's just a null profile, so possibly unloaded player heads? This should fix it.
Interesting, I saw that crash in testing, but only on Hypixel I think, so I assume they have some broken npcs/heads. Will have to see what I can do.
I am seeing it crash when entering an area with a bunch of skulls from more mod heads.
The main issue is:
java.lang.NullPointerException: Unexpected error
at knot//com.google.common.base.Preconditions.checkNotNull(Preconditions.java:904)
at knot//com.google.common.cache.LocalCache.get(LocalCache.java:4016)
at knot//com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4040)
at knot//com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4989)
at knot//com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4996)
at knot//net.minecraft.class_11786.method_74320(class_11786.java:93) <- Where the error happens because something is null that shouldnt be null
at knot//net.minecraft.class_11786.method_73495(class_11786.java:71)
at knot//dev.tr7zw.transition.mc.PlayerUtil.getProfile(PlayerUtil.java:41) <- Where I call a method and have control
Will have to check what it's tripping over that is null there, and if I can catch that before. Probably some part of the skin is not filled in.