Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getAreaRooms() returns a table indexed at zero. #7173

Open
ZookaOnGit opened this issue Mar 9, 2024 · 0 comments
Open

getAreaRooms() returns a table indexed at zero. #7173

ZookaOnGit opened this issue Mar 9, 2024 · 0 comments

Comments

@ZookaOnGit
Copy link
Contributor

Brief summary of issue / Description of requested feature:

Provide a getAreaRooms() function which will return a table without the 0 index key/value pair which is in line with Lua table practices of starting at 1. Then we can use things like table.sort properly.

Steps to reproduce the issue / Reasons for adding feature:

> lua display(getAreaRooms(3))

{ 5002602, 5002601, 5002600, [0] = 5002603 }

Error output / Expected result of feature

> lua display(getAreaRooms(3))

{ 5002602, 5002601, 5002600, 5002603 }

Extra information, such as the Mudlet version, operating system and ideas for how to solve / implement:

https://discord.com/channels/283581582550237184/283582068334526464/1215824921154949280

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

No branches or pull requests

1 participant