The Meaning of Life, the Universe, and Everything.
Join Date:
4/23/2017
Posts:
60
Member Details
I have two types of Armor that have a Full Set Bonus. One of them also gives a different effect for each piece. However, I (and another person) have found a bug. When we equip it on a server, it will crash the client. The only way for the player to ever get back into the server is by deleting their UUID in the server files. And, both types of armor crashed it. I conducted some more testing, and it didn't crash it in a Singeplayer world. Here is a link for a GitHub with any classes that affect armor. And, here is the Armor Class for the type that only has a Full Set Bonus.
The Meaning of Life, the Universe, and Everything.
Join Date:
4/23/2017
Posts:
60
Member Details
If any of you are looking at this in the future, I found the problem. armorItemInSlot is a client-sided method. All you need to do is change it to armorInventory.get
I have two types of Armor that have a Full Set Bonus. One of them also gives a different effect for each piece. However, I (and another person) have found a bug. When we equip it on a server, it will crash the client. The only way for the player to ever get back into the server is by deleting their UUID in the server files. And, both types of armor crashed it. I conducted some more testing, and it didn't crash it in a Singeplayer world. Here is a link for a GitHub with any classes that affect armor. And, here is the Armor Class for the type that only has a Full Set Bonus.
If any of you are looking at this in the future, I found the problem. armorItemInSlot is a client-sided method. All you need to do is change it to armorInventory.get
Example: