[.14.5] get_fuel_inventory doesn't work when type=car
Posted: Sun Sep 11, 2016 11:27 pm
Not sure if bug or oversight but get_fuel_inventory does not work when type = "car"
Create a car or tank hover over it and run this command,
/c inv = game.player.selected.get_fuel_inventory(); game.player.print(tostring(#inv))
inv is nil error
This DOES work on other things that I tested with a fuel inventory though
train, stone-furnace, burner-miner, steel-furnace
Any chance we can get this added in the next version?
[Edit]
/c inv = game.player.selected.get_inventory(defines.inventory.fuel); game.player.print(tostring(#inv))
does work to get the fuel inventory but one would think get_fuel_inventory would do the same.
Create a car or tank hover over it and run this command,
/c inv = game.player.selected.get_fuel_inventory(); game.player.print(tostring(#inv))
inv is nil error
This DOES work on other things that I tested with a fuel inventory though
train, stone-furnace, burner-miner, steel-furnace
Any chance we can get this added in the next version?
[Edit]
/c inv = game.player.selected.get_inventory(defines.inventory.fuel); game.player.print(tostring(#inv))
does work to get the fuel inventory but one would think get_fuel_inventory would do the same.