[2.0.39] Placing non-minable tiles does not erase hidden tiles

Bugs that are actually features.
Natha
Filter Inserter
Filter Inserter
Posts: 260
Joined: Sun Mar 15, 2015 1:48 pm
Contact:

[2.0.39] Placing non-minable tiles does not erase hidden tiles

Post by Natha »

https://lua-api.factorio.com/latest/classes/LuaSurface.html#set_tiles wrote:Placing a non-mineable tile will erase hidden and double hidden tiles
that does not apply. Do the following with debug settings "show raw tile transitions" and "show hidden tiles".

Code: Select all

/c game.player.surface.set_tiles({{position={0, 0}, name="out-of-map"}})
/c game.player.surface.set_hidden_tile({0, 0}, "concrete")
/c game.player.surface.set_tiles({{position={0, 0}, name="deepwater"}})
It still has "concrete" has hidden tile.
Only when placing an "out-of-map", hidden tiles will be erased
Rseding91
Factorio Staff
Factorio Staff
Posts: 15676
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.39] Placing non-minable tiles does not erase hidden tiles

Post by Rseding91 »

Thanks for the report. This seems correct: You've broken the assumptions of the hidden tiles logic by adding a minable tile under a not-minable one and so when you replace the not-minable tile with another not-minable tile it simply skips the hidden tiles logic.

If you don't want that behavior, simply don't do that.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Not a bug”