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

wrong method name usage #250

Closed
scorninpc opened this issue Aug 4, 2023 · 1 comment · Fixed by #256
Closed

wrong method name usage #250

scorninpc opened this issue Aug 4, 2023 · 1 comment · Fixed by #256
Assignees
Labels
❗ Misinformation A page contains misinformation and could be misleading.

Comments

@scorninpc
Copy link
Contributor

scorninpc commented Aug 4, 2023

Mistake

in the part 4a - 4. Adding multiple Item handlers (ItemUseHandler) the itemUseHandler are linked to a method that doesn't exists

My proposed solution

The code show

ItemUseHandler itemUseHandler = this::onItemRightClick;
addItemHandler(itemUseHandler);

But the right method are onItemUseRightClick

Wiki page

https://github.com/Slimefun/Slimefun4/wiki/Developer-Guide-(4a-Right-Clicks)#4-adding-multiple-item-handlers-itemusehandler
and
https://github.com/Slimefun/Slimefun4/wiki/Developer-Guide-(4b-Radioactive-and-WitherProof)#1-a-recap-of-part-4a
and
https://github.com/Slimefun/Slimefun4/wiki/Developer-Guide-(4b-Radioactive-and-WitherProof)#4-implementing-any-other-itemattribute

ps: sorry for not correct forknig and pr

@scorninpc scorninpc added the ❗ Misinformation A page contains misinformation and could be misleading. label Aug 4, 2023
@Phoenix-Starlight Phoenix-Starlight self-assigned this Aug 5, 2023
@scorninpc
Copy link
Contributor Author

#256

sorry for late help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❗ Misinformation A page contains misinformation and could be misleading.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants