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 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