Skip to content

Conversation

@tiennou
Copy link

@tiennou tiennou commented Oct 27, 2025

As rooms generated via the map.generateRoom CLI command would never set type: "terrain", the check for decoding those would always fail, leading to encoded terrain being returned whether the &encoded param was set or not.

Fix the issue by always decoding if a string terrain key is found on a single-result return, but for consistency, also fix generateRoom to add that type property.

As rooms generated via the `map.generateRoom` CLI command would never
set `type: "terrain"`, the check for decoding those would always fail,
leading to encoded terrain being returned whether the `&encoded` param
was set or not.

Fix the issue by always decoding if a string `terrain` key is found on a
single-result return, but for consistency, also fix `generateRoom` to
add that `type` property.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant