Fix path to spirit list JSON

This commit is contained in:
2025-05-28 02:30:37 +02:00
parent 8f37a2db64
commit 664268b201

View File

@@ -15,7 +15,7 @@ const wss = new ws.Server({ server });
app.use(express.static(path.join(__dirname, 'public')));
// --- Spirits laden ---
const SPIRITS_PATH = path.join(__dirname, '..', 'spirits', 'spirit_list.json');
const SPIRITS_PATH = path.join(__dirname, '.', 'spirits', 'spirit_list.json');
let spirits = [];
try {
spirits = JSON.parse(fs.readFileSync(SPIRITS_PATH, 'utf8'));