This commit is contained in:
Anuken
2019-08-13 18:15:40 -04:00
parent 335b6ae0cc
commit 84786c12d8
3 changed files with 95 additions and 85 deletions
@@ -170,8 +170,10 @@ public class EntityGroup<T extends Entity>{
}
public void clear(){
for(T entity : entityArray)
for(T entity : entityArray){
entity.removed();
entity.setGroup(null);
}
for(T entity : entitiesToAdd)
entity.setGroup(null);