mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed crash when opening the settings screen without loading a world
This commit is contained in:
parent
bfc7c64160
commit
c3032ded26
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue