Fixed icarus wings constantly producing sounds when worn

This commit is contained in:
Sollace 2023-08-16 19:58:30 +01:00
parent e0b0457f33
commit 554bca3831
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -298,9 +298,8 @@ public class PlayerPhysics extends EntityPhysics<PlayerEntity> implements Tickab
}
}
lastFlightType = type;
if (!pony.isClient()) {
lastFlightType = type;
isFlyingSurvival = entity.getAbilities().flying && !creative;
isFlyingEither = isFlyingSurvival || (creative && entity.getAbilities().flying);
}