Skip to content

Commit ca5e720

Browse files
authored
fixed landfill deletion (#1559)
fixed landfill deletion upon mining of covering tile.
1 parent e2de33c commit ca5e720

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

map_gen/maps/diggy/feature/diggy_hole.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ local function on_mined_tile(surface, tiles)
134134
for _, tile in pairs(tiles) do
135135
if (artificial_tiles[tile.old_tile.name]) then
136136
count = count + 1
137-
new_tiles[count] = {name = 'dirt-' .. random(1, 7), position = tile.position}
137+
new_tiles[count] = { name = tile.old_tile.hidden_tile or ('dirt-' .. random(1, 7)), position = tile.position }
138138
end
139139
end
140140

0 commit comments

Comments
 (0)