Przeglądaj źródła

Pushed relevant changes of ScriptingExample.Main

kindlich 4 lat temu
rodzic
commit
9c5aaeb2a8
Nie znaleziono w bazie danych klucza dla tego podpisu

+ 2
- 3
ScriptingExample/src/main/java/org/openzen/zenscript/scriptingexample/Main.java Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz