소스 검색

HotFix for #1764
The way I fixed this is by allowing the paths to be loaded at server boot even when the config option is set to False.
My preferred fix would be to not start the AI timers at all if the config is false. However, in that case the NPC would need to be reloaded should a GM //set the option at runtime, and the paths would also need to be loaded at that time.
With this fix, if a GM uses the //set command to enable the walker npcs during runtime, the NPCs will just start walking as soon as their timer fires.
This is not very clean, nor very efficient, but it required the least amount of work, fixes the crashes, and has the above advantage of dynamic setting with no additional overheads...

PLEASE MAKE A MORE PROPER FIX!!

Fulminus 17 년 전
부모
커밋
eedeaabf2a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      L2_GameServer_It/java/net/sf/l2j/gameserver/GameServer.java

+ 2 - 2
L2_GameServer_It/java/net/sf/l2j/gameserver/GameServer.java

@@ -334,8 +334,8 @@ public class GameServer
 
 		
 //		L2EMU_ADD by Rayan. L2J - BigBro
-		if(Config.ALLOW_NPC_WALKERS)
-			NpcWalkerRoutesTable.getInstance().load();
+		//if(Config.ALLOW_NPC_WALKERS)
+		NpcWalkerRoutesTable.getInstance().load();
 		//L2EMU_ADD by Rayan. L2J - BigBro
 		
 		RecipeController.getInstance();