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

(Container):increaseAtPos unexpected behaviour #82

Open
brightrim opened this issue Jan 7, 2022 · 1 comment
Open

(Container):increaseAtPos unexpected behaviour #82

brightrim opened this issue Jan 7, 2022 · 1 comment

Comments

@brightrim
Copy link
Member

According to the old luadoc, the function is supposed to return an integer of how many the item.number was increased by.
Instead it returns as 0.

@vilarion
Copy link
Member

This is a documentation bug, all the increaseAtPos variants (Character, Player, Container) return the number of items that could not be created.

We can either fix the documentation or change the behaviour in all variants.

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

2 participants