Fix regression of #55 Closes #77

This commit is contained in:
Sollace 2022-12-04 15:22:58 +00:00
parent 1db87ad409
commit ca825b9c32

View file

@ -383,8 +383,8 @@ public class Pony extends Living<PlayerEntity> implements Transmittable, Copieab
}
if (ticksInSun == 1) {
entity.addStatusEffect(new StatusEffectInstance(UEffects.SUN_BLINDNESS, SunBlindnessStatusEffect.MAX_DURATION, 1, true, false));
if (!isClient()) {
entity.addStatusEffect(new StatusEffectInstance(UEffects.SUN_BLINDNESS, SunBlindnessStatusEffect.MAX_DURATION, 1, true, false));
UCriteria.LOOK_INTO_SUN.trigger(entity);
} else if (isClientPlayer()) {
InteractionManager.instance().playLoopingSound(entity, InteractionManager.SOUND_EARS_RINGING, getEntity().getId());