Fixed batpony flight not functioning as it should since the last change

This commit is contained in:
Sollace 2022-09-28 22:45:11 +02:00
parent 0f60cbce34
commit 67e9d5fb3a

View file

@ -319,10 +319,10 @@ public class PlayerPhysics extends EntityPhysics<PlayerEntity> implements Tickab
entity.fallDistance = 0;
if (type.isAvian() && pony.getSpecies() != Race.BAT) {
if (type.isAvian()) {
applyThrust(velocity);
if (entity.world.random.nextInt(9000) == 0) {
if (pony.getSpecies() != Race.BAT && entity.world.random.nextInt(9000) == 0) {
entity.dropItem(UItems.PEGASUS_FEATHER);
entity.playSound(USounds.ENTITY_PLAYER_PEGASUS_MOLT, 0.3F, 1);
UCriteria.SHED_FEATHER.trigger(entity);