From ebbd54241152ff5b7e9d43f8c5ee760c28cc4779 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Wed, 20 Nov 2024 00:52:21 +0900 Subject: [PATCH] Fix Spawn Area Belts (#3) --- exp_legacy/module/modules/addons/spawn-area.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exp_legacy/module/modules/addons/spawn-area.lua b/exp_legacy/module/modules/addons/spawn-area.lua index 8550f434..b92187bc 100644 --- a/exp_legacy/module/modules/addons/spawn-area.lua +++ b/exp_legacy/module/modules/addons/spawn-area.lua @@ -78,7 +78,9 @@ end local function spawn_belts(surface, position) position = apply_offset(position, config.afk_belts.offset) local belt_type = config.afk_belts.belt_type - local belt_details = { { -0.5, -0.5, 2 }, { 0.5, -0.5, 4 }, { -0.5, 0.5, 0 }, { 0.5, 0.5, 6 } } -- x, y,dir + -- 2 4 0 6 + local belt_details = { { -0.5, -0.5, defines.direction.east }, { 0.5, -0.5, defines.direction.south }, { -0.5, 0.5, defines.direction.north }, { 0.5, 0.5, defines.direction.west } } -- x, y, dir + for _, belt_set in pairs(config.afk_belts.locations) do local set_position = apply_offset(position, belt_set)