Skip to content

Commit

Permalink
Update to v0.1.0-rc2-hotfix4 (#84)
Browse files Browse the repository at this point in the history
* Fix texture GUID check for cloaks

Replace incorrect 'TextureSkinGuid' checks with 'TextureCloakGuid' in MinecraftHandler. This ensures that cloak textures are correctly processed whenever the provided cloak GUID is not empty.

* Update submodule link Gml.Core
  • Loading branch information
GamerVII-NET authored Oct 16, 2024
1 parent 6f8d804 commit 2bf85d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Gml.Core
4 changes: 2 additions & 2 deletions src/Gml.Web.Api/Core/Handlers/MinecraftHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static async Task<IResult> HasJoined(HttpContext context, IGmlManager gml
};
}

if (!string.IsNullOrEmpty(user.TextureSkinGuid))
if (!string.IsNullOrEmpty(user.TextureCloakGuid))
{
texture.Textures.Cape = new SkinCape
{
Expand Down Expand Up @@ -171,7 +171,7 @@ public static async Task<IResult> GetProfile(HttpContext context, IGmlManager gm
};
}

if (!string.IsNullOrEmpty(user.TextureSkinGuid))
if (!string.IsNullOrEmpty(user.TextureCloakGuid))
{
texture.Textures.Cape = new SkinCape
{
Expand Down

0 comments on commit 2bf85d7

Please sign in to comment.