Refactoring even more since why not at this point

This commit is contained in:
Pao
2023-02-20 13:00:05 +01:00
parent 9a4572258e
commit 33d4a322a1
8 changed files with 95 additions and 85 deletions

View File

@@ -91,7 +91,7 @@ end
function CheckIfProsthesisAlreadyInstalled(limbs_data, part_name)
for _, side in pairs(TOC_sides) do
for _, side in pairs(TOC.side_names) do
if string.find(part_name, side) then
return (limbs_data[side .. "_Hand"].is_prosthesis_equipped or limbs_data[side .. "_LowerArm"].is_prosthesis_equipped)
end