mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2025-08-18 09:35:50 +00:00
attempt to fix particle library initialization error
This commit is contained in:
parent
3aad8a408b
commit
91720236b1
2
pom.xml
2
pom.xml
@ -7,7 +7,7 @@
|
|||||||
<groupId>me.SuperRonanCraft</groupId>
|
<groupId>me.SuperRonanCraft</groupId>
|
||||||
<artifactId>BetterRTP</artifactId>
|
<artifactId>BetterRTP</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>3.2.2</version>
|
<version>3.2.2-1</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
|
@ -21,7 +21,7 @@ import java.util.Random;
|
|||||||
public class RTPParticles {
|
public class RTPParticles {
|
||||||
|
|
||||||
private boolean enabled;
|
private boolean enabled;
|
||||||
private List<ParticleEffect> effects = new ArrayList<>();
|
private final List<ParticleEffect> effects = new ArrayList<>();
|
||||||
private String shape;
|
private String shape;
|
||||||
private final int
|
private final int
|
||||||
radius = 30,
|
radius = 30,
|
||||||
@ -58,6 +58,11 @@ public class RTPParticles {
|
|||||||
effects.add(ParticleEffect.ASH);
|
effects.add(ParticleEffect.ASH);
|
||||||
getPl().getLogger().severe("The particle '" + typeTrying + "' doesn't exist! Default particle enabled... " +
|
getPl().getLogger().severe("The particle '" + typeTrying + "' doesn't exist! Default particle enabled... " +
|
||||||
"Try using '/rtp info particles' to get a list of available particles");
|
"Try using '/rtp info particles' to get a list of available particles");
|
||||||
|
} catch (ExceptionInInitializerError e2) {
|
||||||
|
effects.clear();
|
||||||
|
effects.add(ParticleEffect.ASH);
|
||||||
|
getPl().getLogger().severe("The particle '" + typeTrying + "' created a fatal error when loading particles!");
|
||||||
|
getPl().getLogger().severe("Please report this Ronan asap!");
|
||||||
}
|
}
|
||||||
shape = config.getString("Particles.Shape").toUpperCase();
|
shape = config.getString("Particles.Shape").toUpperCase();
|
||||||
if (!Arrays.asList(shapeTypes).contains(shape)) {
|
if (!Arrays.asList(shapeTypes).contains(shape)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user