Fixed pretty huge bug
This commit is contained in:
@@ -34,7 +34,6 @@ function CureInfection(body_damage)
|
||||
bodyPart:SetInfected(false)
|
||||
end
|
||||
|
||||
getPlayer().Say("I'm gonna be fine")
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -250,7 +250,7 @@ function TheOnlyCure.CutLimb(part_name, surgeon_factor, bandage_table, painkille
|
||||
|
||||
-- Heal the infection here
|
||||
local body_damage = player:getBodyDamage()
|
||||
if part_data[part_name].is_infected and body_damage.getInfectionLevel() < 20 then
|
||||
if part_data[part_name].is_infected and body_damage:getInfectionLevel() < 20 then
|
||||
part_data[part_name].is_infected = false
|
||||
body_part:SetBitten(false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user