Skip to content

Commit

Permalink
fix: Play correct delayed effects
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperLorelai committed Mar 11, 2024
1 parent c2dfc2d commit f37e719
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public final Entity playEntityEffect(final Location location, SpellData data) {
if (delay <= 0) return playEntityEffectLocationReal(location, data);

SpellData finalData = data;
MagicSpells.scheduleDelayedTask(() -> playEffectLibLocationReal(location, finalData), delay);
MagicSpells.scheduleDelayedTask(() -> playEntityEffectLocationReal(location, finalData), delay);

return null;
}
Expand All @@ -354,7 +354,7 @@ public final ArmorStand playArmorStandEffect(final Location location, SpellData
if (delay <= 0) return playArmorStandEffectLocationReal(location, data);

SpellData finalData = data;
MagicSpells.scheduleDelayedTask(() -> playEffectLibLocationReal(location, finalData), delay);
MagicSpells.scheduleDelayedTask(() -> playArmorStandEffectLocationReal(location, finalData), delay);

return null;
}
Expand Down

0 comments on commit f37e719

Please sign in to comment.