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

Things that has been reported already before.
Post Reply
Degraine
Filter Inserter
Filter Inserter
Posts: 281
Joined: Wed Aug 13, 2014 10:49 am
Contact:

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

Post 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.

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

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

Post 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?
If you want to get ahold of me I'm almost always on Discord.

Degraine
Filter Inserter
Filter Inserter
Posts: 281
Joined: Wed Aug 13, 2014 10:49 am
Contact:

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

Post by Degraine »

I can't get it to reproduce anymore myself, so I guess it's a false alarm for now.

Post Reply

Return to “Duplicates”