mirror of
https://github.com/Elecast2/EntityTrackerFixer.git
synced 2024-11-25 11:25:31 +01:00
Checking again if list contains entity before ticking again
This commit is contained in:
parent
0da24f4c37
commit
2e3e3f3037
@ -73,6 +73,9 @@ public class EntityTickManager extends BukkitRunnable {
|
||||
if(!entity.valid) {
|
||||
continue;
|
||||
}
|
||||
if(ws.entitiesById.containsValue(entity)) {
|
||||
continue;
|
||||
}
|
||||
if(ws.entitiesById.containsKey(i)) {
|
||||
int id = ((AtomicInteger)entityCount.get(null)).incrementAndGet();
|
||||
ws.entitiesById.put(id, entity);
|
||||
|
@ -73,6 +73,9 @@ public class EntityTickManager extends BukkitRunnable {
|
||||
if(!entity.valid) {
|
||||
continue;
|
||||
}
|
||||
if(ws.entitiesById.containsValue(entity)) {
|
||||
continue;
|
||||
}
|
||||
if(ws.entitiesById.containsKey(i)) {
|
||||
int id = ((AtomicInteger)entityCount.get(null)).incrementAndGet();
|
||||
ws.entitiesById.put(id, entity);
|
||||
|
Loading…
Reference in New Issue
Block a user