mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +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
|
@Override
|
||||||
public void tick() {
|
public void tick() {
|
||||||
super.tick();
|
super.tick();
|
||||||
|
|
||||||
|
Race currentRace = getActualSpecies();
|
||||||
|
if (!currentRace.isUnset()) {
|
||||||
|
Race newRace = currentRace.validate(entity);
|
||||||
|
|
||||||
|
if (newRace != currentRace) {
|
||||||
|
setSpecies(newRace);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sendCapabilities();
|
sendCapabilities();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue