mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 10:36:09 +01:00
Fix particles for 1.8, fixes #718
This commit is contained in:
parent
bf2b1dd98d
commit
0146ce1f41
@ -27,7 +27,7 @@ public abstract class ParticleProvider {
|
||||
String packageName = ParticleProvider.class.getPackage().getName();
|
||||
String internalsName = Bukkit.getServer().getClass().getPackage().getName().split("\\.")[3];
|
||||
if (internalsName.startsWith("v1_8_R")) {
|
||||
loaded = (ParticleProvider) Class.forName(packageName + "." + internalsName).newInstance();
|
||||
loaded = (ParticleProvider) Class.forName(packageName + ".ParticleProvider_" + internalsName).newInstance();
|
||||
} else {
|
||||
loaded = new ParticleProvider_Bukkit();
|
||||
}
|
||||
@ -121,7 +121,8 @@ public abstract class ParticleProvider {
|
||||
if (particle.getVector() != null) {
|
||||
pos.add(particle.getVector());
|
||||
}
|
||||
loaded.spawnParticle(player, pos, loaded.getParticleMap().get(particle), particle.getOffsetX(), particle.getOffsetY(), particle.getOffsetZ(), particle.getSpeed(), particle.getCount(), null);
|
||||
loaded.spawnParticle(player, pos,
|
||||
loaded.getParticleMap().get(particle),
|
||||
particle.getOffsetX(), particle.getOffsetY(), particle.getOffsetZ(), particle.getSpeed(), particle.getCount(), null);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user