[Rseding91] Removing fluid from train via script doesn't reset inactivity

This subforum contains all the issues which we already resolved.
PFQNiet
Filter Inserter
Filter Inserter
Posts: 289
Joined: Sat Sep 05, 2020 7:48 pm
Contact:

[Rseding91] Removing fluid from train via script doesn't reset inactivity

Post by PFQNiet »

Test setup: build a rail, a train stop, and a train with a cargo and fluid wagon. Send the train to the stop with "inactivity" set to like a minute.

Tests:
- With the cargo wagon selected...

Code: Select all

/c game.player.selected.insert{name="iron-plate",count=100}
The train's inactivity timer is reset correctly.

Code: Select all

/c game.player.selected.get_inventory(defines.inventory.cargo_wagon).remove{name="iron-plate",count=100}
The train's inactivity timer is reset correctly.

- With the fluid wagon selected...

Code: Select all

/c game.player.selected.insert_fluid{name="water",amount=100}
The train's inactivity timer is reset correctly.

Code: Select all

/c game.player.selected.remove_fluid{name="water",amount=100}
The train's inactivity timer is NOT reset.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14594
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Removing fluid from train via script doesn't reset inactivity

Post by Rseding91 »

Thanks for the report. It's now fixed for 1.1.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”