mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-26 02:58:00 +01:00
Do not assume pre-built particle will contain identifier, fixes #1269
This commit is contained in:
parent
bca22f2440
commit
c8d4301ba5
@ -89,6 +89,10 @@ public enum PreBuiltParticle {
|
||||
* @return the PreBuiltParticle represented by the specified identifier
|
||||
*/
|
||||
public static PreBuiltParticle fromIdentifier(String identifier) {
|
||||
return valueOf(identifier);
|
||||
try {
|
||||
return valueOf(identifier);
|
||||
} catch (IllegalArgumentException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user