mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fixed players' race not updating when it's disallowed
This commit is contained in:
parent
8e76ac5db7
commit
56737c1c28
1 changed files with 10 additions and 0 deletions
|
@ -451,6 +451,16 @@ public class Pony extends Living<PlayerEntity> implements Copyable<Pony>, Update
|
|||
@Override
|
||||
public void tick() {
|
||||
super.tick();
|
||||
|
||||
Race currentRace = getActualSpecies();
|
||||
if (!currentRace.isUnset()) {
|
||||
Race newRace = currentRace.validate(entity);
|
||||
|
||||
if (newRace != currentRace) {
|
||||
setSpecies(newRace);
|
||||
}
|
||||
}
|
||||
|
||||
sendCapabilities();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue