mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-30 21:17:53 +01:00
More Throwable handling
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
9bb4043571
commit
0f2d850dce
@ -15,6 +15,7 @@ public final class ExceptionManager {
|
||||
* @param e the occurred exception
|
||||
*/
|
||||
public void handleException(Throwable e) {
|
||||
// TODO handle OOM exceptions
|
||||
this.getExceptionHandler().handleException(e);
|
||||
}
|
||||
|
||||
|
@ -135,7 +135,7 @@ public abstract class ThreadProvider {
|
||||
return;
|
||||
try {
|
||||
chunk.tick(time);
|
||||
} catch (Exception e) {
|
||||
} catch (Throwable e) {
|
||||
MinecraftServer.getExceptionManager().handleException(e);
|
||||
}
|
||||
final var entities = chunkEntry.entities;
|
||||
@ -148,7 +148,7 @@ public abstract class ThreadProvider {
|
||||
}
|
||||
try {
|
||||
entity.tick(time);
|
||||
} catch (Exception e) {
|
||||
} catch (Throwable e) {
|
||||
MinecraftServer.getExceptionManager().handleException(e);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user