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

Hotbar items stop working when moved to another slot #11

Closed
xDanub opened this issue Nov 24, 2020 · 7 comments
Closed

Hotbar items stop working when moved to another slot #11

xDanub opened this issue Nov 24, 2020 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@xDanub
Copy link

xDanub commented Nov 24, 2020

Any issues regarding pocketmine spoons will be disregarded and closed.
Make sure that you can produce the bug without any other plugins.

Describe the bug
When you have a hotbar and you have the locked-hotbar option disabled the item will work in the desired hotbar slot only. Then once moved to another slot it doesnt work, then once moved back to original spot it still doesnt work.

To Reproduce
Steps to reproduce the behavior:

  1. Apply a hotbar
  2. Disable locked-hotbar option in config
  3. Use the item (mine was a command)
  4. Move the item
  5. Try to use the item again

Expected behavior
I expected the hotbar item to be able to be used whenever it is clicked regardless of the hotbar slot it is in when hotbar-lock is disabled

Desktop (please complete the following information):

  • API: 3.16.0
  • OS: Windows
  • Version 1.16.100

Additional context
Add any other context about the problem here.

@artulloss
Copy link
Owner

This was intended to work to prevent issues with having two of the same item. I'll implement a fix using nbt.

@artulloss artulloss self-assigned this Nov 24, 2020
@artulloss artulloss added the bug Something isn't working label Nov 24, 2020
@xDanub
Copy link
Author

xDanub commented Nov 24, 2020

Amazing, ty sir!

@xDanub
Copy link
Author

xDanub commented Nov 26, 2020

@artulloss Is it possible to make an option for it to not clear inventory when you login aswell?

@artulloss
Copy link
Owner

I feel like your use case is not what this was intended for- this is for menus in like a lobby. Mind telling me what you're trying to do? If it's just commands to be clicked on items I suggest this plugin. https://github.com/TheAz928/ItemCommands

@xDanub
Copy link
Author

xDanub commented Nov 26, 2020

Sorry I guess I was just pushing the limits of your plugin I guess. I was intending to use it as the plugin you linked is used. Thanks for the help. My discord is Danub#4689 if you'd like to hear about what I'm trying to do.

@artulloss
Copy link
Owner

Didn't work. Mine is adam#9876.

@xDanub
Copy link
Author

xDanub commented Nov 26, 2020

whoops, lowercase D. Sent you a request. Solved the issue using https://github.com/TheAz928/ItemCommands and https://poggit.pmmp.io/ci/IceCruelStuff/SpawnWithItems/SpawnWithItems

@xDanub xDanub closed this as completed Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants