geforkt von Mirrors/Paper
SPIGOT-5142: Ignore invalid firework effects
Dieser Commit ist enthalten in:
Ursprung
fca41573a3
Commit
31d4a777c7
@ -90,7 +90,11 @@ class CraftMetaFirework extends CraftMetaItem implements FireworkMeta {
|
||||
List<FireworkEffect> effects = this.effects = new ArrayList<FireworkEffect>(fireworkEffects.size());
|
||||
|
||||
for (int i = 0; i < fireworkEffects.size(); i++) {
|
||||
effects.add(getEffect((NBTTagCompound) fireworkEffects.get(i)));
|
||||
try {
|
||||
effects.add(getEffect((NBTTagCompound) fireworkEffects.get(i)));
|
||||
} catch (IllegalArgumentException ex) {
|
||||
// Ignore invalid effects
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren