mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-24 03:25:20 +01:00
Include base 1.8 for particles
This commit is contained in:
parent
7ce87b8644
commit
c56d358153
@ -26,7 +26,7 @@ public abstract class BukkitParticleProvider {
|
||||
final String bukkitVersion = Bukkit.getServer().getBukkitVersion().split("-")[0];
|
||||
try {
|
||||
final String packageName = BukkitParticleProvider.class.getPackage().getName();
|
||||
if (bukkitVersion.startsWith("1.8.")) {
|
||||
if (bukkitVersion.startsWith("1.8.") || bukkitVersion.equals("1.8")) {
|
||||
final String internalsName = Bukkit.getServer().getClass().getPackage().getName().split("\\.")[3];
|
||||
loaded = (BukkitParticleProvider) Class.forName(packageName + ".BukkitParticleProvider_"
|
||||
+ internalsName).newInstance();
|
||||
|
Loading…
Reference in New Issue
Block a user