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 }