MobHunting

MobHunting

114k Downloads

[bug] Heads turning into steve heads and not turning back

TomLewis opened this issue ยท 4 comments

commented

I have only had the plugin live a small amount of time, but I have had a few reports from players that heads are getting picked up/dropped and are turning into steve heads and not turning back.
one of my Staff members & players created a video to show it happening (So you can try and figure out why)
https://www.youtube.com/watch?v=mGCKXPcnJxg&feature=youtu.be

He said that only some heads are affected, mostly those which we did not have previously, All fish heads, Wither Skeleton Skulls (A big one, as these are expensive for players).

We are asking around for players to see if any more are affected.

commented

hmm... it seems to be something with the display name

Pufferfish works for me...

But the Raw fish did not work like on the video. It became a head... the i tried to rename the head using "/mh head rename rawfish" placed the head and broke it, and then the skin came back.

I think I know what to do, but it will take me some time to fix this... so it dont depend on the displayname, but i hidden UUID instead.

commented

thanks for the video, it actually helped me alot !!!!

commented

The video helped me to understand that I had I big problem using the display name as identifier for the skin / mobtype/player and allowing the players to change the name using /mh head rename" , so I realized I had to store the skin in the hidden data in the lores.

I have made a new build 489
https://fractal.lindegaard.one:8181/job/MobHunting/

Where I have added line 5 in the hidden data, where I store the UUID of the skin for the head/mob/bagofgold

I have tried to make it backwards compatible with existing heads (without this information), I hope I found all the NPE bugs because of a missing line.

I have testet Raw_Fish, and Wither_Skeleton, my own playerhead and BagOfGold head. All seems to works... I have tried to drop, buy, merge, spilt, break, place heads and I can find any bugs anymore. SO I am ready to let you help with the testing.

commented

Please let me know if this is fixed on your server?