Skip to content

Commit

Permalink
1.21.1-1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticdrew committed Oct 26, 2024
1 parent f2d7eca commit ad2169a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ internal fun skinGet(ctx: Context)
val uuid = UUID.fromString(ctx.pathParam("uuid"))
val profile = Minecraft.getInstance().connection?.getPlayerInfo(uuid)?.profile

val img: NativeImage = if (profile == null)
val img: NativeImage? = if (profile == null)
{
NativeImage(24, 24, false)
}
else
{
IgnSkin.getFaceImage(profile)
IgnSkin.getFace(profile).pixels
}

ctx.contentType(ContentType.IMAGE_PNG)
img.writeToChannel(Channels.newChannel(ctx.outputStream()))
img?.writeToChannel(Channels.newChannel(ctx.outputStream()))
ctx.outputStream().flush()
img.close()
img?.close()
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod_version=1.0.1
mod_version=1.0.2
mappings=1.20.6
minecraft_version=1.21
journeymap_webmap_version=1.1-SNAPSHOT
Expand Down

0 comments on commit ad2169a

Please sign in to comment.