From 25dd67b49958460c22b1f7aad62a85047b80955b Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Thu, 16 Mar 2023 14:57:12 +0700 Subject: [PATCH] =?UTF-8?q?use=20ChipmunkBot=20Core=E2=84=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/core.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/core.js b/plugins/core.js index 8916ef1..b220e94 100644 --- a/plugins/core.js +++ b/plugins/core.js @@ -22,12 +22,14 @@ function inject (bot, dcclient, config) { relativePosition.y++ } - if (relativePosition.y >= config.core.layers) { - relativePosition.y = 0 - relativePosition.z++ + if (relativePosition.z >= 16) { + relativePosition.z = 0 + relativePosition.y++ } - if (relativePosition.z >= 16) { + if (relativePosition.y >= config.core.layers) { + relativePosition.x = 0 + relativePosition.y = config.core.layers relativePosition.z = 0 }