From 01481c6ec1273f054cce09c098e0d8765216d38b Mon Sep 17 00:00:00 2001 From: Najeeb Al-Shabibi Date: Mon, 25 Sep 2023 17:26:39 +0100 Subject: [PATCH] fixed directions for supporting connections --- suspendmanager.lua | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/suspendmanager.lua b/suspendmanager.lua index 458425b1d1..a37cd28dee 100644 --- a/suspendmanager.lua +++ b/suspendmanager.lua @@ -346,20 +346,20 @@ end ---@return table local function neighboursWallSupportsWall(pos) return { - {x=pos.x-1, y=pos.y, z=pos.z}, + {x=pos.x-1, y=pos.y, z=pos.z}, -- orthogonal same level {x=pos.x+1, y=pos.y, z=pos.z}, {x=pos.x, y=pos.y-1, z=pos.z}, {x=pos.x, y=pos.y+1, z=pos.z}, - {x=pos.x-1, y=pos.y, z=pos.z-1}, + {x=pos.x-1, y=pos.y, z=pos.z-1}, -- orthogonal level below {x=pos.x+1, y=pos.y, z=pos.z-1}, {x=pos.x, y=pos.y-1, z=pos.z-1}, {x=pos.x, y=pos.y+1, z=pos.z-1}, - {x=pos.x-1, y=pos.y, z=pos.z+1}, + {x=pos.x-1, y=pos.y, z=pos.z+1}, -- orthogonal level above {x=pos.x+1, y=pos.y, z=pos.z+1}, {x=pos.x, y=pos.y-1, z=pos.z+1}, {x=pos.x, y=pos.y+1, z=pos.z+1}, - {x=pos.x, y=pos.y, z=pos.z-1}, - {x=pos.x, y=pos.y, z=pos.z+1}, + {x=pos.x, y=pos.y, z=pos.z-1}, -- directly below + {x=pos.x, y=pos.y, z=pos.z+1}, -- directly above } end @@ -368,12 +368,12 @@ end ---@return table local function neighboursFloorSupportsWall(pos) return { - {x=pos.x-1, y=pos.y, z=pos.z}, + {x=pos.x-1, y=pos.y, z=pos.z}, -- orthogonal same level {x=pos.x+1, y=pos.y, z=pos.z}, {x=pos.x, y=pos.y-1, z=pos.z}, {x=pos.x, y=pos.y+1, z=pos.z}, - {x=pos.x, y=pos.y, z=pos.z+1}, - {x=pos.x-1, y=pos.y, z=pos.z+1}, + {x=pos.x, y=pos.y, z=pos.z+1}, -- directly above + {x=pos.x-1, y=pos.y, z=pos.z+1}, --orthogonal level above {x=pos.x+1, y=pos.y, z=pos.z+1}, {x=pos.x, y=pos.y-1, z=pos.z+1}, {x=pos.x, y=pos.y+1, z=pos.z+1}, @@ -385,10 +385,15 @@ end ---@return table local function neighboursWallSupportsFloor(pos) return { - {x=pos.x-1, y=pos.y, z=pos.z}, + {x=pos.x-1, y=pos.y, z=pos.z}, -- orthogonal same level {x=pos.x+1, y=pos.y, z=pos.z}, {x=pos.x, y=pos.y-1, z=pos.z}, {x=pos.x, y=pos.y+1, z=pos.z}, + {x=pos.x-1, y=pos.y, z=pos.z-1}, -- orthogonal level below + {x=pos.x+1, y=pos.y, z=pos.z-1}, + {x=pos.x, y=pos.y-1, z=pos.z-1}, + {x=pos.x, y=pos.y+1, z=pos.z-1}, + {x=pos.x, y=pos.y, z=pos.z-1}, -- directly below } end @@ -397,15 +402,10 @@ end ---@return table local function neighboursFloorSupportsFloor(pos) return { - {x=pos.x-1, y=pos.y, z=pos.z}, + {x=pos.x-1, y=pos.y, z=pos.z}, -- orthogonal same level {x=pos.x+1, y=pos.y, z=pos.z}, {x=pos.x, y=pos.y-1, z=pos.z}, {x=pos.x, y=pos.y+1, z=pos.z}, - {x=pos.x, y=pos.y, z=pos.z+1}, - {x=pos.x-1, y=pos.y, z=pos.z+1}, - {x=pos.x+1, y=pos.y, z=pos.z+1}, - {x=pos.x, y=pos.y-1, z=pos.z+1}, - {x=pos.x, y=pos.y+1, z=pos.z+1}, } end