Parameterize our ArrayLists.

This commit is contained in:
GJ 2013-01-14 00:34:01 -05:00
parent ed5120eead
commit 268db10361

View File

@ -643,7 +643,7 @@ public class HashChunkManager implements ChunkManager {
mobsToRemove.clear(); mobsToRemove.clear();
tempSpawnedMobs = new ArrayList(spawnedMobs); tempSpawnedMobs = new ArrayList<Entity>(spawnedMobs);
for (Entity entity : tempSpawnedMobs) { for (Entity entity : tempSpawnedMobs) {
if (entity.isDead()) if (entity.isDead())
mobsToRemove.add(entity); mobsToRemove.add(entity);
@ -652,7 +652,7 @@ public class HashChunkManager implements ChunkManager {
mobsToRemove.add(entity); mobsToRemove.add(entity);
} }
tempSpawnedPets = new ArrayList(spawnedPets); tempSpawnedPets = new ArrayList<Entity>(spawnedPets);
for (Entity entity : tempSpawnedPets) { for (Entity entity : tempSpawnedPets) {
if (entity.isDead()) if (entity.isDead())
mobsToRemove.add(entity); mobsToRemove.add(entity);