Przeglądaj źródła

fix add auto announce

janiii 15 lat temu
rodzic
commit
bf4a6893ee

+ 5 - 5
L2_GameServer/java/com/l2jserver/gameserver/taskmanager/AutoAnnounceTaskManager.java

@@ -19,12 +19,12 @@ import java.util.List;
 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.util.Broadcast;
 
-import javolution.util.FastList;
-
 /**
  * 
  * @author nBd
@@ -79,7 +79,7 @@ public class AutoAnnounceTaskManager
 				String[] text = memo.split("/n");
 				ThreadPoolManager.getInstance().scheduleGeneral(new AutoAnnouncement(id, delay, repeat, text), initial);
 				count++;
-				if (_nextId < id)
+				if (_nextId <= id)
 					_nextId = id + 1;
 			}
 			data.close();
@@ -153,7 +153,7 @@ public class AutoAnnounceTaskManager
 			L2DatabaseFactory.close(conn);
 		}
 	}
-
+	
 	public class AutoAnnouncement implements Runnable
 	{
 		private int _id;
@@ -213,4 +213,4 @@ public class AutoAnnounceTaskManager
 	{
 		protected static final AutoAnnounceTaskManager _instance = new AutoAnnounceTaskManager();
 	}
-}
+}