Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
},
"dependencies": {
"async-mutex": "^0.4.0",
"better-sqlite3": "^9.5.0",
"kysely": "^0.26.1",
"better-sqlite3": "^11.10.0",
"kysely": "^0.28.2",
"source-map-support": "^0.5.21",
"zod": "^3.21.4",
"zod-validation-error": "^1.3.1"
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.4",
"@types/better-sqlite3": "^7.6.13",
"@types/node": "^18.17.4",
"dotenv": "^16.0.1",
"prettier": "^3.0.1",
Expand Down
6 changes: 3 additions & 3 deletions server/src/Renderer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { spawn } from "child_process";
import { promisify } from "util";
import * as database from "./database";
import * as database from "./db/database";

export async function renderTile(
dimension: string,
Expand All @@ -25,8 +25,8 @@ export async function renderTile(

const chunkHeaderBuf = Buffer.allocUnsafe(4 + 4 + 2); // reused. 32+32+16 bit
for (const chunk of allChunks) {
chunkHeaderBuf.writeInt32BE(chunk.chunk_x, 0);
chunkHeaderBuf.writeInt32BE(chunk.chunk_z, 4);
chunkHeaderBuf.writeInt32BE(chunk.chunkX, 0);
chunkHeaderBuf.writeInt32BE(chunk.chunkZ, 4);
chunkHeaderBuf.writeUInt16BE(chunk.version, 8);
await write(chunkHeaderBuf);
await write(chunk.data);
Expand Down
219 changes: 0 additions & 219 deletions server/src/database.ts

This file was deleted.

Loading