diff --git a/src/util/Debug.hx b/src/util/Debug.hx index 8dc8ef9..5301f2f 100644 --- a/src/util/Debug.hx +++ b/src/util/Debug.hx @@ -1,9 +1,11 @@ package util; -import cc.HTTP; -import kernel.net.Net; import cc.ComputerCraft; import kernel.Log; +#if webconsole +import cc.HTTP; +import kernel.net.Net; +#end class Debug { public static function printBuildInfo() { @@ -18,7 +20,7 @@ class Debug { #if webconsole public static function printWeb(msg:String) { - HTTP.post("http://127.0.0.1:8080/"+Net.instance.networkID, msg); + HTTP.request("http://127.0.0.1:8080/"+Net.instance.networkID,msg); } #end }