mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 03:34:43 +02:00
Removing unnecessary ArrayLists
This commit is contained in:
@ -8,7 +8,6 @@ import java.io.ObjectOutputStream;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Integer;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
@ -189,7 +188,7 @@ public class HashChunkManager implements ChunkManager {
|
||||
|
||||
iteratingMobs = true;
|
||||
|
||||
List<Entity> chunkMobs = new ArrayList(Arrays.asList(world.getChunkAt(cx, cz).getEntities()));
|
||||
Entity[] chunkMobs = world.getChunkAt(cx, cz).getEntities();
|
||||
|
||||
for (Entity entity : chunkMobs) {
|
||||
if(!(entity instanceof LivingEntity) && !(entity instanceof FallingBlock))
|
||||
|
Reference in New Issue
Block a user