Remove some legacy batpony code

This commit is contained in:
Sollace 2022-12-14 17:41:26 +00:00
parent 57eaf86d5a
commit ed22f638ae

View file

@ -251,16 +251,6 @@ public class PlayerPhysics extends EntityPhysics<PlayerEntity> implements Tickab
if (type.canFly()) {
if (isFlying()) {
if (pony.getObservedSpecies() == Race.BAT && entity.verticalCollision && pony.canHangAt(pony.getOrigin().up(2))) {
EntityAttributeInstance attr = entity.getAttributeInstance(UEntityAttributes.ENTITY_GRAVTY_MODIFIER);
if (!attr.hasModifier(PlayerAttributes.BAT_HANGING)) {
attr.addPersistentModifier(PlayerAttributes.BAT_HANGING);
entity.setVelocity(Vec3d.ZERO);
return;
}
}
ticksInAir++;
tickFlight(type, velocity);