Sync with L2jServer HighFive Mar 25th 2015.
This commit is contained in:
@ -18,8 +18,9 @@
|
||||
*/
|
||||
package com.l2jserver.gameserver.model;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
|
||||
import com.l2jserver.gameserver.ai.CtrlIntention;
|
||||
import com.l2jserver.gameserver.ai.L2ControllableMobAI;
|
||||
@ -67,7 +68,7 @@ public final class MobGroup
|
||||
{
|
||||
if (_mobs == null)
|
||||
{
|
||||
_mobs = new ArrayList<>();
|
||||
_mobs = new CopyOnWriteArrayList<>();
|
||||
}
|
||||
|
||||
return _mobs;
|
||||
@ -369,8 +370,7 @@ public final class MobGroup
|
||||
|
||||
protected void removeDead()
|
||||
{
|
||||
List<L2ControllableMobInstance> deadMobs = new ArrayList<>();
|
||||
|
||||
List<L2ControllableMobInstance> deadMobs = new LinkedList<>();
|
||||
for (L2ControllableMobInstance mobInst : getMobs())
|
||||
{
|
||||
if ((mobInst != null) && mobInst.isDead())
|
||||
|
Reference in New Issue
Block a user