The build_check_type flag on LuaSurface.can_place_entity was added (viewtopic.php?f=65&t=57632) in response to my need to check if a ghost was already present at a position for this mod: https://mods.factorio.com/mod/replicating-belts
In 1.1, the new rules allowing placement of overlapping ghosts (even with the same orientation as the original ghost) has broken the use case of checking if a ghost is already present. Could the function return a failure if the new placement does not rotate, instead of just saying all ghost builds are valid (which seems fairly useless)?
[1.1.5] 1.1 ghost building changes impact usability of LuaSurface.can_place_entity
-
- Fast Inserter
- Posts: 128
- Joined: Thu Feb 08, 2018 8:25 am
- Contact:
Re: [1.1.5] 1.1 ghost building changes impact usability of LuaSurface.can_place_entity
In general ghosts should not be placeable on top of each other but there are some exceptions like ghosts from different forces. I will move this topic to pending because there was another batch of changes related to buildability checks for 1.1.6, one of which changes`build_check_types` so i will not be checking what is your particular issue right now in 1.1.5. When 1.1.6 will be out, let me know if its still broken or if it was fixed.