After returning true the first time for spawning an entity in a specific location, and then spawning said entity, once it dies, can_place_entity will return false, despite being able to spawn the same entity with create_entity anyway.
The easiest way to reproduce would be to download my Stormwalls mod and in control.lua, put line 604 in line 606, and replace the 'createdField == true' check in line 605 with the commented out if check above it. Load up the game and place an emitter and forcefield plate, then kill the wall that spawns in. can_place_entity will no longer return true for the spawn check.
[Rseding91] 16.20: LuaSurface::can_place_entity returns false negative
Re: [Rseding91] 16.20: LuaSurface::can_place_entity returns false negative
Thanks for the report however I can't reproduce any problem when I test?
Are you using any other mod(s) that might be triggering the behavior?
Are you using any other mod(s) that might be triggering the behavior?
If you want to get ahold of me I'm almost always on Discord.
Re: [Rseding91] 16.20: LuaSurface::can_place_entity returns false negative
I can't get it to reproduce anymore myself, so I guess it's a false alarm for now.