When using LuaSurface.can_place_entity build smoke is visible, even if the entity cannot be placed.
Reference: https://lua-api.factorio.com/latest/Lua ... ace_entity
Demo while checking to build a Rocket Silo over Solar Panel:
[0.17.49] LuaSurface.can_place_entity creates build smoke
Re: [0.17.49] LuaSurface.can_place_entity creates build smoke
Can you provide the relevant code you are using?
Nothing like this has been reported before, so it is worth double checking the script is not at fault
Nothing like this has been reported before, so it is worth double checking the script is not at fault
Re: [0.17.49] LuaSurface.can_place_entity creates build smoke
Thanks for the report however I can't reproduce what you're saying. As Klonan said: can you please post an example mod showing the problem? I suspect it's some mod problem and not a game issue.
If you want to get ahold of me I'm almost always on Discord.
Re: [0.17.49] LuaSurface.can_place_entity creates build smoke
The relevant code can be found at: https://github.com/Roang-zero1/upgrade- ... #L203-L214
Maybe the build smoke comes from trying to fast replace a non fast-replaceable entity?
https://github.com/Roang-zero1/upgrade- ... e.lua#L156
I have no access to the game right now so unfortunately I can't test any further.
Maybe the build smoke comes from trying to fast replace a non fast-replaceable entity?
https://github.com/Roang-zero1/upgrade- ... e.lua#L156
I have no access to the game right now so unfortunately I can't test any further.
Re: [0.17.49] LuaSurface.can_place_entity creates build smoke
Trying to fast-replace an entity would generate build smokes since it's: create entity -> try to fast-replace. Should the fast-replace fail and then you destroy the new entity you still created it so the smokes are created.
If you want to get ahold of me I'm almost always on Discord.
Re: [0.17.49] LuaSurface.can_place_entity creates build smoke
Yeah that was it, thanks.
Can be moved to not a bug.
Can be moved to not a bug.