diff --git a/package.json b/package.json index d6f64f634..667bfdad1 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,8 @@ "watch": "python build.py --watch=stable", "watch:preview": "python build.py --watch=preview", "watch:server": "python build.py --watch=server", + "build:client": "python build.py --target=release --clean", + "build:server": "python build.py --target=server --clean", "build:all": "python build.py --target=release --clean && python build.py --target=server", "build:beta": "python build.py --target=debug --clean", "lint": "npx eslint src", diff --git a/src/server/modules/region_buffer.ts b/src/server/modules/region_buffer.ts index 9fbda2ff1..312937ac8 100644 --- a/src/server/modules/region_buffer.ts +++ b/src/server/modules/region_buffer.ts @@ -515,15 +515,15 @@ export class RegionBuffer { const mirror = new Vector(Math.sign(options.flip?.x ?? 1), 1, Math.sign(options.flip?.z ?? 1)); const loadOptions = { rotation: { - 0: StructureRotation.None, - 1: StructureRotation.Rotate90, - 2: StructureRotation.Rotate180, - 3: StructureRotation.Rotate270, + "0": StructureRotation.None, + "1": StructureRotation.Rotate90, + "2": StructureRotation.Rotate180, + "3": StructureRotation.Rotate270, }[((rotation.y ?? 0) / 90) % 4], mirror: { "1 1": StructureMirrorAxis.None, - "-1 1": StructureMirrorAxis.X, - "1 -1": StructureMirrorAxis.Z, + "-1 1": StructureMirrorAxis.Z, + "1 -1": StructureMirrorAxis.X, "-1 -1": StructureMirrorAxis.XZ, }[`${mirror.x} ${mirror.z}`], includeBlocks: options.includeBlocks ?? true,