Cleaned up Warning And Error Code
This commit is contained in:
@@ -153,7 +153,7 @@ class Script extends FlxBasic implements IFlxDestroyable {
|
||||
var arr = Assets.getText(path).split("________PACKSEP________");
|
||||
fromString(arr[1], arr[0]);
|
||||
case "lua":
|
||||
Logs.trace("Lua is not supported in this engine. Use HScript instead.", ERROR);
|
||||
Logs.error("Lua is not supported in this engine. Use HScript instead.");
|
||||
new DummyScript(path);
|
||||
default:
|
||||
new DummyScript(path);
|
||||
@@ -172,7 +172,7 @@ class Script extends FlxBasic implements IFlxDestroyable {
|
||||
case "hx" | "hscript" | "hsc" | "hxs":
|
||||
new HScript(path).loadFromString(code);
|
||||
case "lua":
|
||||
Logs.trace("Lua is not supported in this engine. Use HScript instead.", ERROR);
|
||||
Logs.error("Lua is not supported in this engine. Use HScript instead.");
|
||||
new DummyScript(path).loadFromString(code);
|
||||
default:
|
||||
new DummyScript(path).loadFromString(code);
|
||||
|
||||
Reference in New Issue
Block a user