Skip to content

Commit 2aed2df

Browse files
committedMar 16, 2025
Explicitly use the deepcopy from factorios core lualib util, in case some mod interferes with it.
1 parent 206fb88 commit 2aed2df

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎data-updates.lua

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
do
2-
-- I think we need this in -updates, because I think elevated-rails
3-
-- modifies the locomotive prototype in -updates? I've not double checked.
2+
-- ZZZ this could be moved to data, because elevated-rails updates
3+
-- ZZZ the locomotive in the first stage, and we optdep on it
4+
local util = require("__core__/lualib/util")
45

5-
local shuttle = table.deepcopy(data.raw.locomotive.locomotive)
6+
local shuttle = util.copy(data.raw.locomotive.locomotive)
67
shuttle.name = "folk-shuttle"
78
shuttle.icon = "__folk-shuttle__/graphics/folk-shuttle-locomotive.png"
89
shuttle.minable.result = "folk-shuttle"

0 commit comments

Comments
 (0)
Please sign in to comment.