From 5eecd82da0015a5e6a1bcbc053d49137c235c497 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 8 Apr 2024 23:40:47 +0100 Subject: [PATCH] update default head part size --- .gitea/workflows/ci.yml | 2 +- src/main/java/cc/fascinated/controller/PlayerController.java | 2 +- src/main/java/cc/fascinated/model/player/Skin.java | 2 +- src/main/resources/templates/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 263f084..72f47f3 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,4 +1,4 @@ -name: "deploy" +name: "ci" on: push: diff --git a/src/main/java/cc/fascinated/controller/PlayerController.java b/src/main/java/cc/fascinated/controller/PlayerController.java index 274518f..a1dd9c0 100644 --- a/src/main/java/cc/fascinated/controller/PlayerController.java +++ b/src/main/java/cc/fascinated/controller/PlayerController.java @@ -42,7 +42,7 @@ public class PlayerController { @GetMapping(value = "/{part}/{id}") public ResponseEntity getPlayerHead(@PathVariable String part, @PathVariable String id, - @RequestParam(required = false, defaultValue = "250") int size) { + @RequestParam(required = false, defaultValue = "256") int size) { Player player = playerManagerService.getPlayer(id); byte[] partBytes = new byte[0]; if (player != null) { // The player exists diff --git a/src/main/java/cc/fascinated/model/player/Skin.java b/src/main/java/cc/fascinated/model/player/Skin.java index 65c8eac..bb27d6c 100644 --- a/src/main/java/cc/fascinated/model/player/Skin.java +++ b/src/main/java/cc/fascinated/model/player/Skin.java @@ -87,7 +87,7 @@ public class Skin { @Getter @AllArgsConstructor public enum Parts { - HEAD(8, 8, 8, 8, 128); + HEAD(8, 8, 8, 8, 256); /** * The x and y position of the part. diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 40b0306..5adc0a7 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -15,7 +15,7 @@ -

Hello!!!

+

Hello!

Wrapper for the Minecraft APIs to make them easier to use.

Source Code