mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-27 13:15:33 +01:00
Catch throwable
This commit is contained in:
parent
7f6251b709
commit
3e1a15e347
@ -213,7 +213,7 @@ public class CitizensNPC extends AbstractNPC {
|
||||
for (Trait trait : traits.values()) {
|
||||
try {
|
||||
trait.onSpawn();
|
||||
} catch (Exception ex) {
|
||||
} catch (Throwable ex) {
|
||||
Messaging.severeTr(Messages.TRAIT_ONSPAWN_FAILED, trait.getName(), getId());
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user