added webconsole
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package util;
|
||||
|
||||
import cc.HTTP;
|
||||
import cc.ComputerCraft;
|
||||
import kernel.Log;
|
||||
|
||||
@@ -13,4 +14,10 @@ class Debug {
|
||||
|
||||
Log.debug("CC/MC version:" + ComputerCraft._HOST);
|
||||
}
|
||||
|
||||
#if webconsole
|
||||
public static function printWeb(msg: String) {
|
||||
HTTP.post("http://127.0.0.1:8080/",msg);
|
||||
}
|
||||
#end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user