Vehicles retain fuel when picked up

by Quezler

Don't you just hate it when there's still a big red fuel bar left?

Utilities
a month ago
1.1 - 2.0
586
Transportation Cheats

b Crash with Cargo Ships

8 days ago

When mining a cargo ship that has any fuel in it, it throws an unrecoverable error:

The mod Cargo Ships (1.0.30) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event cargo-ships::on_player_mined_entity (ID 74)
The mod Vehicles retain fuel when picked up (2.0.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event vehicles-retain-fuel-when-picked-up::on_player_mined_entity (ID 74)
Index out of inventory bounds.
stack traceback:
[C]: in function 'index'
__vehicles-retain-fuel-when-picked-up
/control.lua:16: in function <vehicles-retain-fuel-when-picked-up/control.lua:11>
stack traceback:
[C]: in function 'mine_entity'
cargo-ships/control.lua:332: in function <cargo-ships/control.lua:320>

Happens with just Cargo Ships and Vehicles Retain Fuel, can make a test world, place water with the editor, place waterway, place a ship on it, then put fuel in. Move the ship at all (so a piece of the fuel is used and has a progress bar), then mine the ship outside of editor and it will crash.

Happens with both Cargo or Tanker ships.

New response