-Dropped Javolution.
-Removal of Q00344_1000YearsTheEndOfLamentation. -Fixed starting conditions for Q00144_PailakaInjuredDragon. -Fixed starting conditions for last Seven Sign quests. -Added missing MonasteryOfSilence.xml instance spawns and doors. -Removed many catacomb spawns.
This commit is contained in:
@@ -19,11 +19,10 @@
|
||||
package com.l2jserver.gameserver.taskmanager;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import javolution.util.FastSet;
|
||||
|
||||
import com.l2jserver.Config;
|
||||
import com.l2jserver.gameserver.ThreadPoolManager;
|
||||
import com.l2jserver.gameserver.model.L2Object;
|
||||
@@ -43,7 +42,7 @@ public class KnownListUpdateTaskManager
|
||||
// Do full update every FULL_UPDATE_TIMER * KNOWNLIST_UPDATE_INTERVAL
|
||||
public static int _fullUpdateTimer = FULL_UPDATE_TIMER;
|
||||
|
||||
protected static final FastSet<L2WorldRegion> _failedRegions = new FastSet<>(1);
|
||||
protected static final HashSet<L2WorldRegion> _failedRegions = new HashSet<>(1);
|
||||
|
||||
protected KnownListUpdateTaskManager()
|
||||
{
|
||||
|
||||
@@ -32,12 +32,11 @@ import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import java.util.concurrent.ScheduledFuture;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import javolution.util.FastList;
|
||||
|
||||
import com.l2jserver.L2DatabaseFactory;
|
||||
import com.l2jserver.gameserver.ThreadPoolManager;
|
||||
import com.l2jserver.gameserver.taskmanager.tasks.TaskBirthday;
|
||||
@@ -62,7 +61,7 @@ public final class TaskManager
|
||||
protected static final Logger _log = Logger.getLogger(TaskManager.class.getName());
|
||||
|
||||
private final Map<Integer, Task> _tasks = new ConcurrentHashMap<>();
|
||||
protected final List<ExecutedTask> _currentTasks = new FastList<ExecutedTask>().shared();
|
||||
protected final List<ExecutedTask> _currentTasks = new CopyOnWriteArrayList<>();
|
||||
|
||||
protected static final String[] SQL_STATEMENTS =
|
||||
{
|
||||
@@ -204,8 +203,7 @@ public final class TaskManager
|
||||
public void registerTask(Task task)
|
||||
{
|
||||
int key = task.getName().hashCode();
|
||||
_tasks.computeIfAbsent(key, k ->
|
||||
{
|
||||
_tasks.computeIfAbsent(key, k -> {
|
||||
task.initializate();
|
||||
return task;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user