1
0
Fork 0
mirror of https://github.com/Sollace/Unicopia.git synced 2025-04-18 09:04:06 +02:00

Don't assign a default race to newly-joined players (because we have a UI that lets them pick for themselves).

This commit is contained in:
Sollace 2022-10-17 14:13:18 +02:00
parent 79ea197dad
commit 5e3711c042
2 changed files with 1 additions and 6 deletions
src/main/java/com/minelittlepony/unicopia

View file

@ -9,7 +9,7 @@ import net.minecraft.world.dimension.DimensionTypes;
public class WorldTribeManager extends PersistentState {
private Race defaultRace = Unicopia.getConfig().preferredRace.get();
private Race defaultRace = Race.HUMAN;
public WorldTribeManager() {}

View file

@ -298,11 +298,6 @@ public class Pony extends Living<PlayerEntity> implements Transmittable, Copieab
@Override
public boolean beforeUpdate() {
if (!speciesSet && getReferenceWorld() instanceof ServerWorld) {
setSpecies(WorldTribeManager.forWorld((ServerWorld)getReferenceWorld()).getDefaultRace());
setDirty();
}
if (isClientPlayer() && !speciesSet) {
Race race = UnicopiaClient.getPreferredRace();