diff --git a/lib_planes/entities.lua b/lib_planes/entities.lua index 1dd3872..1befbeb 100644 --- a/lib_planes/entities.lua +++ b/lib_planes/entities.lua @@ -701,6 +701,7 @@ local function damage_vehicle(self, toolcaps, ttime, damage) end damage = damage + value / 10 self.hp_max = self.hp_max - damage + if self.hp_max < 0 then self.hp_max = 0 end airutils.setText(self, self._vehicle_name) end