fix: Logger + executing squirrel code

This commit is contained in:
AURUMVORXX
2025-05-27 00:04:03 +03:00
parent a6a4dd88ad
commit 7f189b806b
11 changed files with 44 additions and 88 deletions

View File

@@ -1,7 +1,8 @@
function _message_call(data)
{
local result = compilestring(data["data"])();
local compile_string = "try { " + data["data"] + " } catch(id) { print(\"[PyG2O] Error white executing the code: \" + id + \"\\nCode: " + data["data"] + "\"); return null; }";
local result = compilestring(compile_string)();
local className = _getClassName(result);
if (className == "Vec3")
{