mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 16:28:00 +01:00
Remove some legacy batpony code
This commit is contained in:
parent
57eaf86d5a
commit
ed22f638ae
1 changed files with 0 additions and 10 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue