From f7d17f5256c2c55eb7ffba02528ad98dc549b55a Mon Sep 17 00:00:00 2001 From: JasperLorelai Date: Thu, 1 Feb 2024 23:26:06 +0100 Subject: [PATCH] fix: Add trackers --- .../nisovin/magicspells/spells/targeted/OrbitSpell.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/nisovin/magicspells/spells/targeted/OrbitSpell.java b/core/src/main/java/com/nisovin/magicspells/spells/targeted/OrbitSpell.java index 78029ac3c..23ee2d084 100644 --- a/core/src/main/java/com/nisovin/magicspells/spells/targeted/OrbitSpell.java +++ b/core/src/main/java/com/nisovin/magicspells/spells/targeted/OrbitSpell.java @@ -55,9 +55,9 @@ public class OrbitSpell extends TargetedSpell implements TargetedEntitySpell, Ta private final ConfigData counterClockwise; private final ConfigData requireEntityTarget; - private String orbitSpellName; - private String groundSpellName; - private String entitySpellName; + private final String orbitSpellName; + private final String groundSpellName; + private final String entitySpellName; private Subspell orbitSpell; private Subspell groundSpell; @@ -257,6 +257,8 @@ private OrbitTracker(SpellData data) { if (data.hasTarget()) playSpellEffects(data.caster(), data.target(), data); else playSpellEffects(data.caster(), currentLocation, data); + + trackerSet.add(this); } @Override