I think I found a small bug, I have an entity, with the prototype pump and specified energy_source.type="burner"
like this:
Code: Select all
local pump = table.deepcopy(data.raw.pump['pump'])
pump.name = 'apm_pump_0'
pump.flags = {"placeable-neutral", "placeable-player", "player-creation"}
pump.minable = {mining_time = 0.2, result = "apm_pump_0"}
pump.energy_usage = "200kW"
pump.energy_source = {}
pump.energy_source.type = "burner"
pump.energy_source.fuel_categories = {'chemical','apm_refined_chemical'}
pump.energy_source.effectivity = 1
pump.energy_source.fuel_inventory_size = 1
pump.energy_source.burnt_inventory_size = 1
pump.energy_source.emissions_per_minute = 2.5
data:extend({pump})
I found out that "entity.get_fuel_inventory()" returns allways nil,
but entity.get_inventory(defines.inventory.fuel) returns the correct LuaInventory
EDIT:
same behavior for:
entity.get_burnt_result_inventory() returns allways nil
and entity.get_inventory(defines.inventory.burnt_result) returns the correct LuaInventory