Disable particle feature if mc version isn't supported

This commit is contained in:
RonanCraft 2022-03-04 09:47:19 -05:00
parent 91720236b1
commit 64644bea3b

View File

@ -60,9 +60,8 @@ public class RTPParticles {
"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) { } catch (ExceptionInInitializerError e2) {
effects.clear(); effects.clear();
effects.add(ParticleEffect.ASH); getPl().getLogger().severe("The particle '" + typeTrying + "' created a fatal error when loading particles! Your MC version isn't supported!");
getPl().getLogger().severe("The particle '" + typeTrying + "' created a fatal error when loading particles!"); enabled = false;
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)) {