From 325bdd0fdf18bf2ff8bc4d146ac36250da67fb92 Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 5 May 2020 18:48:47 +0200 Subject: [PATCH] Fixed effect desync when using changeling abilities --- .../unicopia/ability/ChangelingFeedAbility.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/ChangelingFeedAbility.java b/src/main/java/com/minelittlepony/unicopia/ability/ChangelingFeedAbility.java index 33aac988..1fe9a1de 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/ChangelingFeedAbility.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/ChangelingFeedAbility.java @@ -128,7 +128,9 @@ public class ChangelingFeedAbility implements Ability { ParticleUtils.spawnParticles(UParticles.CHANGELING_MAGIC, living, 7); if (changeling.hasStatusEffect(StatusEffects.NAUSEA)) { - living.addStatusEffect(changeling.removeStatusEffectInternal(StatusEffects.NAUSEA)); + StatusEffectInstance effect = changeling.getStatusEffect(StatusEffects.NAUSEA); + changeling.removeStatusEffect(StatusEffects.NAUSEA); + living.addStatusEffect(effect); } else if (changeling.getEntityWorld().random.nextInt(2300) == 0) { living.addStatusEffect(new StatusEffectInstance(StatusEffects.WITHER, 20, 1)); }