Fixed pretty huge bug

This commit is contained in:
Pao
2023-01-20 16:05:44 +01:00
parent 8073680118
commit 63e1d43847
2 changed files with 1 additions and 2 deletions

View File

@@ -34,7 +34,6 @@ function CureInfection(body_damage)
bodyPart:SetInfected(false) bodyPart:SetInfected(false)
end end
getPlayer().Say("I'm gonna be fine")
end end

View File

@@ -250,7 +250,7 @@ function TheOnlyCure.CutLimb(part_name, surgeon_factor, bandage_table, painkille
-- Heal the infection here -- Heal the infection here
local body_damage = player:getBodyDamage() 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 part_data[part_name].is_infected = false
body_part:SetBitten(false) body_part:SetBitten(false)