mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2024-12-30 23:17:53 +02:00
wagon out of map fix
This commit is contained in:
parent
0c8603529b
commit
70bb37d7bf
@ -159,9 +159,8 @@ local function place_wagon(data)
|
||||
local surface = data.surface
|
||||
local tiles = data.hidden_tiles
|
||||
local entities = data.entities
|
||||
local top_x = data.top_x
|
||||
local top_y = data.top_y
|
||||
local position = {x = top_x + random(4, 12) * 2, y = top_y + random(4, 12) * 2}
|
||||
local position = {x = data.x, y = top_y + random(4, 12) * 2}
|
||||
local wagon_mineable = {
|
||||
callback = Functions.disable_minable_and_ICW_callback
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user