mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Catch Throwable instead of Exception when calling context calculators
Related to: lucko/ExtraContexts#4
This commit is contained in:
parent
dcc4656e5e
commit
f5c42c70e5
@ -228,7 +228,7 @@ public abstract class ContextManager<T> {
|
|||||||
throw new IllegalStateException(calculator.getClass() + " returned a null context set");
|
throw new IllegalStateException(calculator.getClass() + " returned a null context set");
|
||||||
}
|
}
|
||||||
accumulator = ret;
|
accumulator = ret;
|
||||||
} catch (Exception e) {
|
} catch (Throwable e) {
|
||||||
ContextManager.this.plugin.getLogger().warn("An exception was thrown by " + getCalculatorClass(calculator) + " whilst calculating the context of subject " + subject);
|
ContextManager.this.plugin.getLogger().warn("An exception was thrown by " + getCalculatorClass(calculator) + " whilst calculating the context of subject " + subject);
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
@ -248,7 +248,7 @@ public abstract class ContextManager<T> {
|
|||||||
throw new IllegalStateException(calculator.getClass() + " returned a null context set");
|
throw new IllegalStateException(calculator.getClass() + " returned a null context set");
|
||||||
}
|
}
|
||||||
accumulator = ret;
|
accumulator = ret;
|
||||||
} catch (Exception e) {
|
} catch (Throwable e) {
|
||||||
this.plugin.getLogger().warn("An exception was thrown by " + getCalculatorClass(calculator) + " whilst calculating static contexts");
|
this.plugin.getLogger().warn("An exception was thrown by " + getCalculatorClass(calculator) + " whilst calculating static contexts");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user