Corosauce / Zombie_Players

Other
2 stars 4 forks source link

Fix nullref on invalid zombie player #12

Open democat3457 opened 4 years ago

democat3457 commented 4 years ago

Fix #11. More of a bandaid tbh, but kinda hard to pinpoint why the gameProfile is null

kil0byt3 commented 4 years ago

@Corosauce - any possibility you can merge this in? Causing some crashes for us in Rebirth of the Night

democat3457 commented 4 years ago

Actually, this could be because it's attempting to naturally spawn zombie players, but the gameProfile is null because the UUID passed into the constructor in onIntitialSpawn is null.