Fixed regression from earlier

This commit is contained in:
Sollace 2023-10-09 15:14:56 +01:00
parent d1b5a73b18
commit ba0fba791e
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -254,7 +254,7 @@ public class PlayerPhysics extends EntityPhysics<PlayerEntity> implements Tickab
boolean typeChanged = type != lastFlightType; boolean typeChanged = type != lastFlightType;
if (typeChanged && lastFlightType.isArtifical() || type.isArtifical()) { if (typeChanged && (lastFlightType.isArtifical() || type.isArtifical())) {
pony.spawnParticles(ParticleTypes.CLOUD, 10); pony.spawnParticles(ParticleTypes.CLOUD, 10);
playSound(entity.getWorld().getDimension().ultrawarm() ? USounds.ITEM_ICARUS_WINGS_CORRUPT : USounds.ITEM_ICARUS_WINGS_PURIFY, 0.1125F, 1.5F); playSound(entity.getWorld().getDimension().ultrawarm() ? USounds.ITEM_ICARUS_WINGS_CORRUPT : USounds.ITEM_ICARUS_WINGS_PURIFY, 0.1125F, 1.5F);