team-abnormals / blueprint

Library that implements the framework of all Abnormals mods
https://www.curseforge.com/minecraft/mc-mods/blueprint
Other
114 stars 33 forks source link

[1.16.5] Fixed capes not loading on rejoin #96

Closed jacksonhardaway closed 3 years ago

jacksonhardaway commented 3 years ago

This PR fixes developer capes not loading when the player rejoins. This was caused by caching the UUID and then not removing the player from it when they left. This made the handler not set their cape after setting it once.

I've fixed it by checking if their cape is null, which also satisfies the previous logic of checking if they have a Mojang cape already and only runs once as once they are assigned a texture, the cape is no longer null.

Fixes #45.