From ed22f638aeb337688602212b1a033a9e33e222de Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 14 Dec 2022 17:41:26 +0000 Subject: [PATCH] Remove some legacy batpony code --- .../unicopia/entity/player/PlayerPhysics.java | 10 ---------- 1 file changed, 10 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 6f31ec41..8faf14e1 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java @@ -251,16 +251,6 @@ public class PlayerPhysics extends EntityPhysics 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);