mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-27 21:29:14 +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()) {
|
for (Trait trait : traits.values()) {
|
||||||
try {
|
try {
|
||||||
trait.onSpawn();
|
trait.onSpawn();
|
||||||
} catch (Exception ex) {
|
} catch (Throwable ex) {
|
||||||
Messaging.severeTr(Messages.TRAIT_ONSPAWN_FAILED, trait.getName(), getId());
|
Messaging.severeTr(Messages.TRAIT_ONSPAWN_FAILED, trait.getName(), getId());
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user