Magic

Magic

190k Downloads

WARN Trying to update hotbar but the wand has gone missing

austin652 opened this issue ยท 31 comments

commented

None of the spells are showing in the players hotbar or inventory and they can only use one spell, this wasn't happening before but now it is, I have no idea what the problem is. I've even swapped configs for an older one I had just to see if that fixed it and it didn't

commented

A few other users on Discord have reported this. I currently have no idea what's causing it, but I have not seen it myself.

The message basically spells it out, the plugin thinks the player is holding a wand, is trying to update the hotbar, but the item the player is holding doesn't match the wand.

Not sure how this could happen (especially all of the sudden) unless you have some other plugin messing with the player's inventory.

None of the spells are showing in the players hotbar or inventory and they can only use one spell

What do you mean by this, exactly? Right-click on wands isn't working?

commented

Alright so I just got more information on it myself, so what happens is that when a player opens their inventory to put spells in their hot bar, they can add it to the hot bar and it works but once they use that spell it just vanishes from their hotbar and wand

commented

Are you using default configs? Wands in inventory mode? I'm not totally understanding what you mean about adding spells to the hotbar.

commented

ezgif-2-28ba5bb4d0
This is what I mean

commented

See how at the end after placing it and using it in the hot bar, it disappears from the inventory

commented

It looks like the wand inventory just closed- if you hit right-click again is the hotbar still empty?

commented

sorry it's a bit fast but at the end when you open click again yes, the hotbar is empty and the spell isn't in the wand anymore

commented

Re:

It wasn't happening before

I don't suppose you have any idea what changed? Did you add any new plugins? Update the Magic plugin or spigot or anything?

commented

Also, yes, I'm using the default config

commented

I updated magic on sunday, and I was made aware of the problem on monday

commented

So you are on 7.6.13 now, right?

commented

correct

commented

Do you happen to know the version you were on before that?

commented

And follow-up (sorry for all the questions)- when you get a new wand, does it start out with an empty hotbar like that?

I have not been able to reproduce any of this, so basically I'm just really confused at this point.

commented

I try to keep the plugin updated so it should have been 7.6.12

commented

yes a new wand starts out with an empty hot bar

commented

Can you try going back to 7.6.12?

I'm trying 7.6.13 myself and not seeing any of this. I'd be curious to know if the problem goes away on the previous version.

commented

Still doesn't work but I noticed another warning
WARN Failed to save wand state for wand to : ItemStack{STICK x 0}

commented

Seems odd- did you have a stick in your hand... ?

commented

And did you update anything else on Sunday besides Magic? If it's not the plugin version it must be something else...

commented

I asked and nobody had a stick when they logged in

commented
commented

It works now with this spigot version so that is for sure the problem

commented

This is assuming you are on latest 1.13 Spigot, something I should've asked from the get-go.

commented

I'm actually 4 versions behind the latest, git-Spigot-f823ac5-c1ecaa2 (MC: 1.13.1) (Implementing API version 1.13.1-R0.1-SNAPSHOT)

commented

This commit is 11 deep, so I think it's the problem.

commented

Well at least I know it might not be something on my end

commented

I have submitted a PR that fixes this issue. We'll have to wait for Spigot to accept it- in the meantime if you can go back to an older version of Spigot that should fix it for now.

commented

What version should I go to specifically?

commented

I've got it

commented

My PR got accepted, you can update to latest Spigot again without issue.