浏览代码

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);

正在加载...
取消
保存