Check if entity is valid before ticking again

This commit is contained in:
Esmorall 2019-12-21 01:04:05 -03:00
parent 3c19156df5
commit 7e31f4bab2
2 changed files with 6 additions and 0 deletions

View File

@ -70,6 +70,9 @@ public class EntityTickManager extends BukkitRunnable {
if(entity == null) {
continue;
}
if(!entity.valid) {
continue;
}
if(ws.entitiesById.containsValue(entity)) {
continue;
}

View File

@ -70,6 +70,9 @@ public class EntityTickManager extends BukkitRunnable {
if(entity == null) {
continue;
}
if(!entity.valid) {
continue;
}
if(ws.entitiesById.containsValue(entity)) {
continue;
}