Expose the fluid mixing prevention check

Things that already exist in the current mod API
Post Reply
sparr
Smart Inserter
Smart Inserter
Posts: 1327
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Expose the fluid mixing prevention check

Post by sparr »

I would like to skip a create_entity if the player manually creating the entity would fail due to the built in fluid mixing prevention check. I know that I could reimplement the check in my mod, but that seems wasteful.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13178
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Expose the fluid mixing prevention check

Post by Rseding91 »

Would it work to set build_check_type to manual?
If you want to get ahold of me I'm almost always on Discord.

sparr
Smart Inserter
Smart Inserter
Posts: 1327
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: Expose the fluid mixing prevention check

Post by sparr »

I take it from your question that can_place_entity{..., build_check_type=defines.build_check_type.manual} performs the fluid mixing prevention check? If so then yes, I can use that. TIL, thanks!

Post Reply

Return to “Already exists”