EarendelDevelopers / factorio-mods

This is a public repository for tracking issues with Earendel's factorio mods.
19 stars 3 forks source link

surface.can_place_entity returns incorrect data for ghosts of SE tiles in space #341

Open utoxin opened 4 months ago

utoxin commented 4 months ago

In an orbital / space surface, when you call surface.can_place_entity to ask if you can place a ghost of a tile on a rocky surface, it incorrectly returns true for se-space-platform-scaffold, and then when bots try to place it, it fails. The same also happens as a player. It allows you to place the ghost, but if you try and place the actual tile, it shows an error and doesn't place.

Expected behavior:

If a tile can't be placed, the ghost of the tile shouldn't be able to be placed either. And it shouldn't even allow you to attempt to place the tile.

It's possible there's no good way to avoid this, if so I'll cope with other solutions, but it would be nice to have this method work as expected.

Quezler commented 4 months ago

this behavior exists for the sole reason of saving a collision layer