From 67e9d5fb3abe690990e90ff466f6432cc7f351c1 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 28 Sep 2022 22:45:11 +0200 Subject: [PATCH] Fixed batpony flight not functioning as it should since the last change --- .../minelittlepony/unicopia/entity/player/PlayerPhysics.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java index a7688129..2a4838cb 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java @@ -319,10 +319,10 @@ public class PlayerPhysics extends EntityPhysics 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);