Fixed some bugs
This commit is contained in:
@@ -35,8 +35,8 @@ function TheOnlyCure.CheckIfPlayerIsInfected(player, toc_data)
|
||||
for _, v in ipairs(GetLimbsBodyPartTypes()) do
|
||||
local toc_bodypart = 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
|
||||
if toc_bodypart.is_cut == false then
|
||||
toc_bodypart.is_infected = true
|
||||
player:transmitModData()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user