diff --git a/.babelrc b/.babelrc index a3d68aa5..d58bcc56 100644 --- a/.babelrc +++ b/.babelrc @@ -1,7 +1,7 @@ { "presets": [ [ - "@babel/env", + "@babel/preset-env", { "targets": { "node": "current" @@ -9,7 +9,7 @@ } ], "@babel/typescript", - "@babel/react", + "@babel/react" ], "plugins": [ "@babel/transform-flow-strip-types", @@ -19,6 +19,6 @@ "@babel/plugin-proposal-numeric-separator", "@babel/plugin-proposal-throw-expressions", ["@babel/plugin-proposal-class-properties", { "loose": true }], - "@babel/proposal-object-rest-spread", + "@babel/proposal-object-rest-spread" ] } diff --git a/utils/pp-center-331-337-link.png b/utils/pp-center-331-337-link.png index ed0f9143..acb8905a 100644 Binary files a/utils/pp-center-331-337-link.png and b/utils/pp-center-331-337-link.png differ diff --git a/utils/redisCopy.js b/utils/redisCopy.js index 6bea95f9..69fd4ea4 100644 --- a/utils/redisCopy.js +++ b/utils/redisCopy.js @@ -54,9 +54,15 @@ async function copyChunksByCoords(xMin, xMax, yMin, yMax) { const setNXArgs = [newkey, chunk]; await newredis.sendCommandAsync('SET', setNXArgs); console.log("Created Chunk ", newkey); + } else { + await newredis.delAsync(newkey); + console.log("Deleted Chunk ", newkey); } } } } -copyChunksByCoords(-160, 60, -60, 160); +module.exports = copyChunksByCoords; + +// copyChunksByCoords(-160, 60, -60, 160); +