FortManager fort list made static.
This commit is contained in:
@@ -31,17 +31,11 @@ import com.l2jmobius.gameserver.model.entity.siege.Fort;
|
||||
/**
|
||||
* @author programmos, scoria dev
|
||||
*/
|
||||
|
||||
public class FortManager
|
||||
{
|
||||
protected static final Logger LOGGER = Logger.getLogger(FortManager.class.getName());
|
||||
|
||||
public static final FortManager getInstance()
|
||||
{
|
||||
return SingletonHolder._instance;
|
||||
}
|
||||
|
||||
private final List<Fort> _forts = new ArrayList<>();
|
||||
private static final List<Fort> _forts = new ArrayList<>();
|
||||
|
||||
public FortManager()
|
||||
{
|
||||
@@ -194,6 +188,11 @@ public class FortManager
|
||||
return _forts;
|
||||
}
|
||||
|
||||
public static final FortManager getInstance()
|
||||
{
|
||||
return SingletonHolder._instance;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
protected static final FortManager _instance = new FortManager();
|
||||
|
Reference in New Issue
Block a user