Skip to content

Commit

Permalink
Fix Style Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
LengthenedGradient committed Aug 30, 2024
1 parent 209e5c1 commit e6c6a4b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lua/acf/core/utilities/util_sv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ do -- Entity linking
--- @return LinkData? LinkData The returned link
--- @return boolean Reversed Whether you should reverse your entity arguments when calling with entities
function ACF.GetClassLink(Class1, Class2)
if ClassLink[Class1] ~= nil and ClassLink[Class1][Class2] ~= nil then return ClassLink[Class1][Class2], false end
if ClassLink[Class2] ~= nil and ClassLink[Class2][Class1] ~= nil then return ClassLink[Class2][Class1], true end
if ClassLink[Class1] and ClassLink[Class1][Class2] then return ClassLink[Class1][Class2], false end
if ClassLink[Class2] and ClassLink[Class2][Class1] then return ClassLink[Class2][Class1], true end
return nil, false
end

Expand Down
6 changes: 3 additions & 3 deletions lua/entities/acf_base_scalable/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ do -- Entity linking and unlinking --------------

if Function then
if Check then
local result, message = Check(A, B)
if result then
local Result, Message = Check(A, B)
if Result then
if FromChip and ChipDelay then
timer.Simple(ChipDelay, function()
if Check(A, B) then Function(A, B) end
end)
else Function(A, B) end
end
return result, message
return Result, Message
end
return Function(A, B)
end
Expand Down
6 changes: 3 additions & 3 deletions lua/entities/acf_base_simple/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ do -- Entity linking and unlinking --------------

if Function then
if Check then
local result, message = Check(A, B)
if result then
local Result, Message = Check(A, B)
if Result then
if FromChip and ChipDelay then
timer.Simple(ChipDelay, function()
if Check(A, B) then Function(A, B) end
end)
else Function(A, B) end
end
return result, message
return Result, Message
end
return Function(A, B)
end
Expand Down

0 comments on commit e6c6a4b

Please sign in to comment.