[Rseding91] 16.20: LuaSurface::can_place_entity returns false negative
Posted: Mon Jan 29, 2018 3:37 pm
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.
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.