mirror of
https://github.com/Elecast2/EntityTrackerFixer.git
synced 2024-11-29 05:15:16 +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) {
|
if(!entity.valid) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if(ws.entitiesById.containsValue(entity)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if(ws.entitiesById.containsKey(i)) {
|
if(ws.entitiesById.containsKey(i)) {
|
||||||
int id = ((AtomicInteger)entityCount.get(null)).incrementAndGet();
|
int id = ((AtomicInteger)entityCount.get(null)).incrementAndGet();
|
||||||
ws.entitiesById.put(id, entity);
|
ws.entitiesById.put(id, entity);
|
||||||
|
@ -73,6 +73,9 @@ public class EntityTickManager extends BukkitRunnable {
|
|||||||
if(!entity.valid) {
|
if(!entity.valid) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if(ws.entitiesById.containsValue(entity)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if(ws.entitiesById.containsKey(i)) {
|
if(ws.entitiesById.containsKey(i)) {
|
||||||
int id = ((AtomicInteger)entityCount.get(null)).incrementAndGet();
|
int id = ((AtomicInteger)entityCount.get(null)).incrementAndGet();
|
||||||
ws.entitiesById.put(id, entity);
|
ws.entitiesById.put(id, entity);
|
||||||
|
Loading…
Reference in New Issue
Block a user