Skip to content

Commit 9ad6f86

Browse files
committed
change check for acf candamage
1 parent 03a81bd commit 9ad6f86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/warden/intercompat/sv_acf.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ hook.Add("InitPostEntity", "WardenACF1", function()
44
local oldCanDamage = ACF.Permissions.CanDamage
55
function ACF.Permissions.CanDamage(ent, _, dmgInfo)
66
if Warden.GetPermission(Warden.PERMISSION_ACF) and Warden.CheckPermission(dmgInfo:GetAttacker(), ent, Warden.PERMISSION_ACF) then return end
7-
if not oldCanDamage(ent, nil, dmgInfo) then return false end
7+
if oldCanDamage(ent, nil, dmgInfo) == false then return false end
88
if not Warden.CheckPermission(dmgInfo:GetAttacker(), ent, Warden.PERMISSION_DAMAGE) then return false end
99
end
1010

0 commit comments

Comments
 (0)