I said fixed.

This commit is contained in:
Pao
2023-01-12 22:32:33 +01:00
parent 2999fe7bf3
commit 650159a046
3 changed files with 13 additions and 8 deletions

View File

@@ -34,10 +34,13 @@ function TheOnlyCure.CheckIfPlayerIsInfected(player, toc_data)
for _, v in ipairs(GetLimbsBodyPartTypes()) do
local toc_bodypart = TheOnlyCure.FindBodyPartFromBodyPartType(toc_data, v)
if body_damage:getBodyPart(v):bitten() and not toc_data[toc_bodypart].is_cut then
toc_data[toc_bodypart].is_infected = true
player:transmitModData()
local toc_bodypart = TheOnlyCure.FindTocDataPartNameFromBodyPartType(toc_data, v)
if body_damage:getBodyPart(v):bitten() and toc_bodypart ~= nil then
if toc_bodypart.is_cut then
toc_data[toc_bodypart].is_infected = true
player:transmitModData()
end
end
end