From ca4f042fc72c228998781a3c530ee15aaf01225c Mon Sep 17 00:00:00 2001 From: Reece Date: Tue, 8 Mar 2022 20:46:36 +0000 Subject: [PATCH] [*] Prevent selflink --- Core/main.lua | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Core/main.lua b/Core/main.lua index cd64f8e..f669f17 100644 --- a/Core/main.lua +++ b/Core/main.lua @@ -447,15 +447,19 @@ local function linkAuProject(dep, soft) linkStart = true end - dependson(dep) + if (auGetBaseProjectName() ~= dep) then + + dependson(dep) + + --if (not processor:getMeta().isStatic) then + pushProject(a, function() + _auFatalMsg["processing project link"] = a.info.name + processor:handleLink() + _auFatalMsg["processing project link"] = nil + end) + --end + end - --if (not processor:getMeta().isStatic) then - pushProject(a, function() - _auFatalMsg["processing project link"] = a.info.name - processor:handleLink() - _auFatalMsg["processing project link"] = nil - end) - --end if (linkStart) then _auLinkGuard = {}