Skip to content

Commit

Permalink
fix(prefabs/rooms): change 'removed' to 'off' for individual wall tex…
Browse files Browse the repository at this point in the history
…tures too
  • Loading branch information
meszaros-lajos-gyorgy committed Sep 29, 2023
1 parent 9a39d0a commit 423c3d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prefabs/rooms/loadRooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,13 @@ export const loadRooms = async (filename: string, settings: Settings) => {
const fitY = tokens[3] === 'fit-y'

wall[wallIdx] = { texture, fitX, fitY, isRemoved: false }
} else if (tokens[1] === 'removed') {
} else if (tokens[1] === 'off') {
wall[wallIdx].isRemoved = true
} else {
console.error(
`[error] loadRooms: Unknown texture type "${tokens[1]}" at line ${
i + 1
}, expected either "custom", "arx" or "removed"`,
}, expected either "custom", "arx" or "off"`,
)
}
}
Expand Down

0 comments on commit 423c3d6

Please sign in to comment.