1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-20 02:33:15 +01:00

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