From 2a0b4f2bfbf0c3ca3b4dc160a076f379e64b5200 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Wed, 12 Feb 2025 20:50:38 +0900 Subject: [PATCH] . --- exp_legacy/module/modules/addons/miner.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/exp_legacy/module/modules/addons/miner.lua b/exp_legacy/module/modules/addons/miner.lua index c222bff8..64c70830 100644 --- a/exp_legacy/module/modules/addons/miner.lua +++ b/exp_legacy/module/modules/addons/miner.lua @@ -119,10 +119,7 @@ local function miner_check(entity) -- Get relative connection position vector local vec = connection.target_position -- Normalize to cardinal direction - local direction = { - x = (((vec.x > 0.5 and 1) or (vec.x < -0.5 and -1)) or 0), - y = (((vec.y > 0.5 and 1) or (vec.y < -0.5 and -1)) or 0) - } + local direction = { x = (((vec.x > 0.5 and 1) or (vec.x < -0.5 and -1)) or 0), y = (((vec.y > 0.5 and 1) or (vec.y < -0.5 and -1)) or 0) } -- Convert to string key to prevent duplicates local key = direction.x .. "," .. direction.y