Pārlūkot izejas kodu

Pushed relevant changes of ScriptingExample.Main

kindlich 4 gadus atpakaļ
vecāks
revīzija
9c5aaeb2a8
Šim parakstam datu bāzē netika atrasta zināma atslēga

+ 2
- 3
ScriptingExample/src/main/java/org/openzen/zenscript/scriptingexample/Main.java Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt