[.14.5] get_fuel_inventory doesn't work when type=car

This subforum contains all the issues which we already resolved.
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

[.14.5] get_fuel_inventory doesn't work when type=car

Post by Nexela »

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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15997
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [.14.5] get_fuel_inventory doesn't work when type=car

Post by Rseding91 »

Fixed for 0.14.6
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”