Updated arc

This commit is contained in:
Anuken
2020-02-03 20:30:18 -05:00
parent ea6490cf9f
commit 67106abb9b
8 changed files with 9 additions and 10 deletions
+2 -2
View File
@@ -125,7 +125,7 @@ public class EntityGroup<T extends Entity> implements Iterable<T>{
entitiesToAdd.clear();
for(T e : entitiesToRemove){
entityArray.removeValue(e, true);
entityArray.remove(e, true);
if(map != null){
map.remove(e.getID());
}
@@ -148,7 +148,7 @@ public class EntityGroup<T extends Entity> implements Iterable<T>{
}else{ //maybe it's being queued?
for(T check : entitiesToAdd){
if(check.getID() == id){ //if it is indeed queued, remove it
entitiesToAdd.removeValue(check, true);
entitiesToAdd.remove(check, true);
if(removeListener != null){
removeListener.get(check);
}