File tree Expand file tree Collapse file tree
src/com/nisovin/magicspells Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828import com .nisovin .magicspells .util .compat .CompatBasics ;
2929import com .nisovin .magicspells .util .compat .EventUtil ;
3030import com .nisovin .magicspells .volatilecode .VolatileCodeEnabled_1_12_R1 ;
31+ import de .slikey .effectlib .util .ParticleEffect ;
3132import org .bukkit .Bukkit ;
3233import org .bukkit .ChatColor ;
3334import org .bukkit .Material ;
@@ -203,6 +204,13 @@ void load() {
203204
204205 effectManager = new EffectManager (this );
205206 effectManager .enableDebug (debug );
207+ try {
208+ Class <?> particleEffectClass = ParticleEffect .class ;
209+ Method setEffectManagerMethod = particleEffectClass .getMethod ("setEffectManager" , EffectManager .class );
210+ setEffectManagerMethod .invoke (null , effectManager );
211+ } catch (Exception ignored ) {
212+ // No-op
213+ }
206214
207215 // Create storage stuff
208216 spells = new HashMap <>();
You can’t perform that action at this time.
0 commit comments