mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-20 03:44:23 +01:00
Fixed batpony flight not functioning as it should since the last change
This commit is contained in:
parent
0f60cbce34
commit
67e9d5fb3a
1 changed files with 2 additions and 2 deletions
|
@ -319,10 +319,10 @@ public class PlayerPhysics extends EntityPhysics<PlayerEntity> implements Tickab
|
||||||
|
|
||||||
entity.fallDistance = 0;
|
entity.fallDistance = 0;
|
||||||
|
|
||||||
if (type.isAvian() && pony.getSpecies() != Race.BAT) {
|
if (type.isAvian()) {
|
||||||
applyThrust(velocity);
|
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.dropItem(UItems.PEGASUS_FEATHER);
|
||||||
entity.playSound(USounds.ENTITY_PLAYER_PEGASUS_MOLT, 0.3F, 1);
|
entity.playSound(USounds.ENTITY_PLAYER_PEGASUS_MOLT, 0.3F, 1);
|
||||||
UCriteria.SHED_FEATHER.trigger(entity);
|
UCriteria.SHED_FEATHER.trigger(entity);
|
||||||
|
|
Loading…
Reference in a new issue