Page 1 of 1

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

Posted: Sun Sep 11, 2016 11:27 pm
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.

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

Posted: Mon Sep 12, 2016 3:07 am
by Rseding91
Fixed for 0.14.6