Page 1 of 1

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

Posted: Wed Oct 30, 2024 2:16 am
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 256 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 256 times

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

Posted: Wed Nov 13, 2024 11:02 am
by Lou
Thank you for the report. the behaviour has been fixed/reworked for 2.0.18.