Can't get mobhunting heads off my head
Sikatsu opened this issue · 44 comments
When a player puts a mobhunting head on his head, he is unable to get it off. It seems like there is some sort of curse of binding enchant on it somehow.
You can use essentials /hat remove
But the bug is fixed in 7.5.1, so players cant move the bag to the head using shift + click
I spawned a head in with /mh head give Sikatsu pufferfish
Since the player that reported it also had a pufferfish head.
I mean, I thought I had a bypass so even deopped and set myself to a player rank, but I can just do it. o.O
Yes tell me :-D
I have tried i both creative and survival and from both player inventory and from the hotbar. With both normal moving with the mouse and with shift-click.
No worries I believe you can do it. I think we have to look after differences between our servers. Plugins and so.
Okay, but I dont know how to removed the head without Essentials ? I hope you have found a way then.
@Rocologo Indeed, this is a weird issue. For me I can not reproduce it for the life of me, but players definitely have this issue.
A player made a video of it.
Players also mention this doesn't happen ALWAYS, but he was able to get it to work the first time I asked to reproduce it...
@Rocologo Turns out shift + click indeed blocks the head from wearing. Just dragging it the normal way still works though, and I can indeed not get the head off anymore..
Being able to wear heads is a normal Minecraft thing. I’ve been meaning to write a bug report about the heads not staying on— you put them on and they pop back off, but had not yet tested enough to be sure which plugin caused the issue.
It is a normal thing, but with the mobhunting mobheads it's bugging out. You can get them on, but you can not get them off your head without using a command like /hat.
I cant get a head without the lore "MobHunting Reward" do you know how to get that one. The head might be broken, since the Lore is missing.
I think those are from minecraft itself? Not sure actually, but it happens to the one with mobhunting lore.
@Rocologo Any news regarding this?
Im sorry I have had very little time to take care of my plugins, but today I finally got a break through!!!
I found out how the players were able to place a head in the helmet slot! The problem was that when a player Dragged the Bag across serval slots an event called "InventoryDragEvent" was called, and I didnt know that event, so it was unhandled. This made me discover yet another unhandled event "InventoryMoveItemEvent" and these two unhandled events is the root cause to many of the bugs I have been fighting where the balance did not calculate correct.
So now Im taking care of both these events and now both dragging and balance seems to work :-)
Please test 1073
https://fractal.lindegaard.one:8181/job/MobHunting/1073/
and let me know if you still are able to place the bag in the helmet slot. I hope not :-D
Please be VERY specific in what you are doing? Because i tested this today and i could not move a head into the helmet slot.
I can shift + click to get the mobhunting head OR the bag of gold in the helmet slot, as well for dragging it.
Players can drag it into the helmet slot, but not shift + click, when they shift + click, it will move for a split second to the helmet slot and then return in the slot it was in..
Ahh, but it is allowed to wear heads, but not the Bags. I think this is like Minecraft Vanilla, that you can wear heads?
And yes, yesterday I decided that I would make it possible to remove the heads from the helmet slot - no matter it should not be possible to place the Bag in the slot. And it was actually this which made me find the "unknown" event. Because I could now "speed click" on the slot and then I discovered that I SOMETIME could place the bag in the slot, but now when i did it slowly.
So yes - I think this is fixed now.
I will make a release now, because this is a major bug which is fixed now. (The missing event).
Im very happy about your help and your patience. Thank You!
This should be fixedin build 1079
https://fractal.lindegaard.one:8181/job/MobHunting/
Im sorry I did get this in to V7.5.4
I have tested shift+click (MOVE_TO_OTHER_INVENTORY) and I discovered that it was possible to SWAP a bag into the Helmet slot, if there was already a HEAD in the slot.
BAGS is blocked. HEADS is not.
I hope. :-)