Fixed crash when opening the settings screen without loading a world

This commit is contained in:
Sollace 2022-10-12 15:45:51 +02:00
parent bfc7c64160
commit c3032ded26

View file

@ -18,6 +18,9 @@ public class MineLPDelegate {
} }
public final Race getPlayerPonyRace() { public final Race getPlayerPonyRace() {
if (MinecraftClient.getInstance().player == null) {
return Race.HUMAN;
}
return getPlayerPonyRace(MinecraftClient.getInstance().player); return getPlayerPonyRace(MinecraftClient.getInstance().player);
} }