Skip to content

Commit

Permalink
Linter/tester improvements
Browse files Browse the repository at this point in the history
Linter now uses the official workflow, and the tester is now no longer broken (correct me if this one is wrong though)
  • Loading branch information
thecraftianman committed Nov 27, 2023
1 parent afefc2a commit 73a1688
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 26 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/GLuaFixer.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/GLuaLint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: GLuaLint

on:
push:
paths:
- 'lua/**'
- '!lua/entities/gmod_wire_expression2/**'
pull_request:
paths:
- 'lua/**'
- '!lua/entities/gmod_wire_expression2/**'

jobs:
Lint:
uses: FPtje/GLuaFixer/.github/workflows/glualint.yml@master
with:
config: "./.glualint.json"
2 changes: 1 addition & 1 deletion lua/acf/ballistics/ballistics_sv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ do -- Terminal ballistics --------------------------
)
end

if HitRes.Kill then
if HitRes.Kill and IsValid(Entity) then
ACF.APKill(Entity, Bullet.Flight:GetNormalized(), Energy.Kinetic, DmgInfo)
end

Expand Down

0 comments on commit 73a1688

Please sign in to comment.