Page 1 of 1

[Rseding91] 16.20: LuaSurface::can_place_entity returns false negative

Posted: Mon Jan 29, 2018 3:37 pm
by Degraine
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.

Re: [Rseding91] 16.20: LuaSurface::can_place_entity returns false negative

Posted: Mon Jan 29, 2018 5:32 pm
by Rseding91
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?

Re: [Rseding91] 16.20: LuaSurface::can_place_entity returns false negative

Posted: Tue Jan 30, 2018 12:19 am
by Degraine
I can't get it to reproduce anymore myself, so I guess it's a false alarm for now.