mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-13 22:25:50 +01:00
Change redo-quest particle to heart for cross-version, fixes #1597
This commit is contained in:
parent
1f6394a5ed
commit
853d97438b
@ -77,7 +77,7 @@ public abstract class ParticleProvider {
|
||||
} else {
|
||||
try {
|
||||
particle = Particle.valueOf(particleId);
|
||||
} catch (final IllegalArgumentException e2) {
|
||||
} catch (final IllegalArgumentException exception) {
|
||||
return; // Fail silently
|
||||
}
|
||||
}
|
||||
@ -107,7 +107,7 @@ public abstract class ParticleProvider {
|
||||
loaded.spawnParticle(player, location, Particle.valueOf(particleId), 0, 0, 0, 1, 3, null);
|
||||
} catch (final NoClassDefFoundError e1) {
|
||||
Bukkit.getLogger().severe("[Quests] This protocol does not support npc-effect: " + particleId);
|
||||
} catch (final IllegalArgumentException exception) {
|
||||
} catch (final IllegalArgumentException e2) {
|
||||
// Fail silently
|
||||
}
|
||||
}
|
||||
@ -128,7 +128,11 @@ 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);
|
||||
try {
|
||||
loaded.spawnParticle(player, pos, loaded.getParticleMap().get(particle), particle.getOffsetX(),
|
||||
particle.getOffsetY(), particle.getOffsetZ(), particle.getSpeed(),particle.getCount(), null);
|
||||
} catch (final IllegalArgumentException exception) {
|
||||
// Fail silently
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ max-quests: 0
|
||||
npc-effects:
|
||||
enabled: true
|
||||
new-quest: note
|
||||
redo-quest: angry_villager
|
||||
redo-quest: heart
|
||||
show-requirements: true
|
||||
show-titles: true
|
||||
strict-player-movement: 0
|
||||
|
Loading…
Reference in New Issue
Block a user