diff --git a/src/main/java/cactusServer/utils/App.java b/src/main/java/cactusServer/utils/App.java index 1a43e61..20cda97 100644 --- a/src/main/java/cactusServer/utils/App.java +++ b/src/main/java/cactusServer/utils/App.java @@ -35,15 +35,22 @@ public class App extends ResourceConfig implements Runnable { private ScheduledThreadPoolExecutor task = new ScheduledThreadPoolExecutor(1000); private long lasttime = System.nanoTime(); + private boolean debugflag = true; public App() { + int interval; + if(debugflag == true) { + interval = 1000; + }else { + interval = 1; + } ObjectModelManager.getInstance(); StageModelManager.getInstance(); CharacterModelManager.getInstance(); Instances.getInstance(); Accounts.getInstance(); initDummy(); - start(1000); + start(interval); System.out.println("pass"); }