mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 09:06:46 +01:00
Parameterize our ArrayLists.
This commit is contained in:
parent
ed5120eead
commit
268db10361
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user