Null check tick thread (#1812)

This commit is contained in:
Camotoy 2021-01-05 23:28:31 -05:00 committed by GitHub
parent 0641800be7
commit 92c86cf15b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -595,7 +595,9 @@ public class GeyserSession implements CommandSender {
}
}
tickThread.cancel(true);
if (tickThread != null) {
tickThread.cancel(true);
}
this.chunkCache = null;
this.entityCache = null;