From 5f40cb2d25af0454b5dd78ab287da4c49e0ccd88 Mon Sep 17 00:00:00 2001 From: dutchie031 Date: Wed, 11 Dec 2024 19:46:48 +0100 Subject: [PATCH 1/2] fixes for bugs found by bishop --- classes/spearhead_db.lua | 2 +- classes/spearhead_events.lua | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/spearhead_db.lua b/classes/spearhead_db.lua index 7b779e7..20ec277 100644 --- a/classes/spearhead_db.lua +++ b/classes/spearhead_db.lua @@ -355,7 +355,7 @@ do -- DB functionString = functionString .. " { x=" .. vecpoint.x .. ", y=0,z=" .. vecpoint.z .. "}," end - functionString = functionString .. "{0,1,0,1}, {0,0,0,1}, 1)" + functionString = functionString .. "{0,1,0,1}, {0,0,0,0}, 1)" env.info(functionString) ---@diagnostic disable-next-line: deprecated diff --git a/classes/spearhead_events.lua b/classes/spearhead_events.lua index 3adda59..4a217de 100644 --- a/classes/spearhead_events.lua +++ b/classes/spearhead_events.lua @@ -303,6 +303,8 @@ do local function CheckAndTriggerSpawnAsync(unit, time) local function isPlayer(unit) if unit == nil then return false, "unit is nil" end + if unit.getGroup == nil then return false, 'no get group function in unit object, most likely static' end + if unit:isExist() ~= true then return false, "unit does not exist" end local group = unit:getGroup() if group ~= nil then From e5a6573c10a54ca61af1caef9603b13626b41b22 Mon Sep 17 00:00:00 2001 From: dutchie031 Date: Wed, 11 Dec 2024 19:48:40 +0100 Subject: [PATCH 2/2] added git pull command in pipeline --- .github/workflows/docs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 5428c0d..8ecc20a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -76,6 +76,8 @@ jobs: - name: ls run: ls working-directory: ./dutchie032.github.io + - name: commit + run: git pull - name: add run: git add --a working-directory: ./dutchie032.github.io