Fixed "Travelling in Style" advancement triggering without the balloon flying

This commit is contained in:
Sollace 2024-10-28 17:41:55 +00:00
parent 75aceac066
commit f2aff24f54
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -54,7 +54,8 @@ public class Transportation<T extends LivingEntity> implements Tickable {
ticksInVehicle = 0; ticksInVehicle = 0;
} }
if (ticksInVehicle > 20 && vehicle instanceof AirBalloonEntity) { if (ticksInVehicle > 20 && vehicle instanceof AirBalloonEntity b
&& !b.isOnGround() && b.hasBalloon() && b.hasBurner() && b.isAscending()) {
UCriteria.RIDE_BALLOON.trigger(living.asEntity()); UCriteria.RIDE_BALLOON.trigger(living.asEntity());
} }
} }