Ignore interruption exception for game and movement task managers.
This commit is contained in:
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.commons.threads.ThreadPool;
|
import org.l2jmobius.commons.threads.ThreadPool;
|
||||||
import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager;
|
import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.commons.threads.ThreadPool;
|
import org.l2jmobius.commons.threads.ThreadPool;
|
||||||
import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager;
|
import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.commons.threads.ThreadPool;
|
import org.l2jmobius.commons.threads.ThreadPool;
|
||||||
import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager;
|
import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.commons.threads.ThreadPool;
|
import org.l2jmobius.commons.threads.ThreadPool;
|
||||||
import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager;
|
import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.commons.threads.ThreadPool;
|
import org.l2jmobius.commons.threads.ThreadPool;
|
||||||
import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager;
|
import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -17,8 +17,6 @@
|
|||||||
package org.l2jmobius.gameserver.taskmanager;
|
package org.l2jmobius.gameserver.taskmanager;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
|||||||
*/
|
*/
|
||||||
public class GameTimeTaskManager extends Thread
|
public class GameTimeTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(GameTimeTaskManager.class.getName());
|
|
||||||
|
|
||||||
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
public static final int TICKS_PER_SECOND = 10; // Not able to change this without checking through code.
|
||||||
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
public static final int MILLIS_IN_TICK = 1000 / TICKS_PER_SECOND;
|
||||||
public static final int IG_DAYS_PER_DAY = 6;
|
public static final int IG_DAYS_PER_DAY = 6;
|
||||||
@@ -81,7 +77,7 @@ public class GameTimeTaskManager extends Thread
|
|||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,6 @@ package org.l2jmobius.gameserver.taskmanager;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
|
||||||
@@ -29,8 +27,6 @@ import org.l2jmobius.gameserver.model.actor.Creature;
|
|||||||
*/
|
*/
|
||||||
public class MovementTaskManager extends Thread
|
public class MovementTaskManager extends Thread
|
||||||
{
|
{
|
||||||
private static final Logger LOGGER = Logger.getLogger(MovementTaskManager.class.getName());
|
|
||||||
|
|
||||||
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
private static final Set<Creature> MOVING_OBJECTS = ConcurrentHashMap.newKeySet();
|
||||||
|
|
||||||
protected MovementTaskManager()
|
protected MovementTaskManager()
|
||||||
@@ -65,9 +61,9 @@ public class MovementTaskManager extends Thread
|
|||||||
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
MOVING_OBJECTS.removeIf(Creature::updatePosition);
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, getClass().getSimpleName(), e);
|
// Ingore.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user