[Lou][2.0.12] LuaSurface::set_tiles doesn't properly unstack tiles

Post Reply
Hanodest
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sun Aug 11, 2024 10:55 pm
Contact:

[Lou][2.0.12] LuaSurface::set_tiles doesn't properly unstack tiles

Post by Hanodest »

Scenario:
- Create a tile with concrete (minable tile) over landfill (foundation tile) over water (non-minable tile).
- Use LuaSurface::set_tiles to set the tile to landfill.

Expected behavior:
- Tile now just have a landfill (as tile) over the water (as hidden_tile).

Actual behavior:
- Tile now has landfill (as tile) over concrete (as hidden_tile) over landfill (as double_hidden_tile).
scenario1.png
scenario1.png (376.27 KiB) Viewed 41 times

Another scenario:
- Create a tile with landfill (foundation tile) over water (non-minable tile).
- Use LuaSurface::set_tiles to set the tile to water.

Expected behavior:
- Tile now has just water (as tile). This was the behavior in 1.1.

Actual behavior:
- Tile now has water as both tile and hidden_tile.
scenario2.png
scenario2.png (325.75 KiB) Viewed 41 times

Post Reply

Return to “Assigned”