Skip to content

Commit

Permalink
Fixed that asphalt tiles would disappear when upgrading to 2.0.11.
Browse files Browse the repository at this point in the history
  • Loading branch information
Septiple committed Jan 10, 2024
1 parent c0c7f6e commit 4167a29
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 2.0.12
Date: ?
Changes:
- Fixed that asphalt tiles would disappear.
---------------------------------------------------------------------------------------------------
Version: 2.0.11
Date: 2024-1-8
Changes:
Expand Down
7 changes: 7 additions & 0 deletions migrations/2.0.12.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
for _, surface in pairs(game.surfaces) do
local tiles={}
for _, e in pairs(surface.find_tiles_filtered{name="lab-dark-2"}) do
table.insert(tiles, {name="py-asphalt", position = {e.position.x, e.position.y}})
end
surface.set_tiles(tiles)
end

0 comments on commit 4167a29

Please sign in to comment.