Temperature of the fluid for `on_player_flushed_fluid`

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
Wiwiweb
Long Handed Inserter
Long Handed Inserter
Posts: 57
Joined: Sat May 08, 2021 2:36 am
Contact:

Temperature of the fluid for `on_player_flushed_fluid`

Post by Wiwiweb »

What?
Simple enough, `on_player_flushed_fluid` returns the name of the fluid that was flushed, and the amount of fluid that was flushed. I would also like to know the temperature of the fluid that was flushed.

In the edge case of a single fluid system containing multiple temperatures of the same fluid, I'm ok with returning the average temperature, or even just the first temperature you find if that's easier.
Why?
It is for my mod Undeletable Fluids, I want to put the fluid back exactly the way it was.
The fact that I can't preserve temperature has caused some players to break their steam engines: https://mods.factorio.com/mod/pyhardmod ... 43effec55d

Thanks!

User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 452
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: Temperature of the fluid for `on_player_flushed_fluid`

Post by raiguard »

Couldn't you just disable the flush fluid permission?
Don't forget, you're here forever.

User avatar
Wiwiweb
Long Handed Inserter
Long Handed Inserter
Posts: 57
Joined: Sat May 08, 2021 2:36 am
Contact:

Re: Temperature of the fluid for `on_player_flushed_fluid`

Post by Wiwiweb »

Depending on the mod, some fluids are allowed to be flushed, and some fluids are not. So I couldn't restrict the entire permission.

Post Reply

Return to “Modding interface requests”