Change redo-quest particle to heart for cross-version, fixes #1597

This commit is contained in:
PikaMug 2021-02-01 19:41:07 -05:00
parent 1f6394a5ed
commit 853d97438b
2 changed files with 9 additions and 5 deletions

View File

@ -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
}
}
}

View File

@ -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