Just read through code of "Aircraft". There are not any line of fuel_category = "chemical"
in their burner definitions, causing my code to skip such entities.
The solution is to add the line fuel_category = "chemical"
into those burner definitions, in Aircraft/prototypes/entities.lua
.
PS: Although the fuel_category has default value "chemical"
if it is not set, my code has to handle other entity types as well. This means that the actual burner can either be burner
or energy_source
properties, and my code has to handle both. So checking fuel_category == "chemical"
is needed as the only reliable condition.