From ed67a040c31d78bf0e7f4df728ceea55fd21715d Mon Sep 17 00:00:00 2001 From: keneanung Date: Wed, 3 Jan 2024 23:11:37 +0100 Subject: [PATCH] Fix the locking of special exits in JSON export --- json-export.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json-export.js b/json-export.js index 70832f5..e07dc68 100644 --- a/json-export.js +++ b/json-export.js @@ -136,7 +136,7 @@ const convertRoom = (roomId, map) => { weight: getExitWeight(specialExit, room.exitWeights, 1), locked: _.find( room.mSpecialExitLocks, - (exitCommand) => specialExit === exitCommand + (destinationRoom) => room.mSpecialExits[specialExit] === destinationRoom ) ? true : undefined,