Skip to content

Commit

Permalink
Fix to issue with hysentials online list crashing people
Browse files Browse the repository at this point in the history
  • Loading branch information
sinender committed Aug 3, 2024
1 parent 8c5a265 commit 06b6199
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ org.gradle.jvmargs=-Xmx8G

mod_name = Hysentials
mod_id = hysentials
mod_version = 1.3.2-beta2
dev_version = 1.3.0-dev
mod_version = 1.3.5-beta1
dev_version = 1.3.5-dev

dev = true
dev = false

loom.platform = forge
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,13 @@ public void renderPlayerlist(int width) {
if (t < list.size()) {
HysentialsSchema.User user = list.get(t);
String string2 = BlockWAPIUtils.getDisplayName(user);
if (bl) {
if (bl && user.getSkin() != null && !user.getSkin().isEmpty()) {
byte[] bytes = Base64.getDecoder().decode(user.getSkin());
try {
BufferedImage image = ImageIO.read(new ByteArrayInputStream(bytes));
DynamicTexture dynamicTexture = new DynamicTexture(image);
dynamicTexture.updateDynamicTexture();
} catch (IOException e) {
throw new RuntimeException(e);
}

int x = 8;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class HysentialsSchema {
var quests: MutableSet<Quest>?,
var amountSpent: Int?,
var hypixel: JsonObject,
var skin: String,
var skin: String?,
) {
companion object {
fun deserialize(obj: JsonObject): User {
Expand Down

0 comments on commit 06b6199

Please sign in to comment.