瀏覽代碼

Pushed relevant changes of ScriptingExample.Main

kindlich 4 年之前
父節點
當前提交
9c5aaeb2a8
沒有發現已知的金鑰在資料庫的簽署中
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2
    3
      ScriptingExample/src/main/java/org/openzen/zenscript/scriptingexample/Main.java

+ 2
- 3
ScriptingExample/src/main/java/org/openzen/zenscript/scriptingexample/Main.java 查看文件

@@ -23,13 +23,12 @@ import org.openzen.zenscript.parser.SimpleBracketParser;
23 23
 import org.openzen.zenscript.scriptingexample.events.EventManager;
24 24
 import org.openzen.zenscript.scriptingexample.events.IEvent;
25 25
 import org.openzen.zenscript.scriptingexample.events.impl.CTStringedEvent;
26
-import org.openzen.zenscript.scriptingexample.logging.StreamLogger;
26
+import org.openzen.zencode.java.logger.ScriptingEngineStreamLogger;
27 27
 
28 28
 public class Main {
29 29
 	public static void main(String[] args) throws CompileException, ParseException, IOException, NoSuchMethodException {
30
-		ScriptingEngine scriptingEngine = new ScriptingEngine();
30
+		ScriptingEngine scriptingEngine = new ScriptingEngine(new ScriptingEngineStreamLogger());
31 31
 		scriptingEngine.debug = true;
32
-		scriptingEngine.logger = new StreamLogger();
33 32
 
34 33
 		JavaNativeModule example = scriptingEngine.createNativeModule("example", "org.openzen.zenscript.scriptingexample");
35 34
 		example.addGlobals(Globals.class);

Loading…
取消
儲存