Skip to content

Commit 06b6199

Browse files
committed
Fix to issue with hysentials online list crashing people
1 parent 8c5a265 commit 06b6199

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ org.gradle.jvmargs=-Xmx8G
66

77
mod_name = Hysentials
88
mod_id = hysentials
9-
mod_version = 1.3.2-beta2
10-
dev_version = 1.3.0-dev
9+
mod_version = 1.3.5-beta1
10+
dev_version = 1.3.5-dev
1111

12-
dev = true
12+
dev = false
1313

1414
loom.platform = forge

src/main/java/llc/redstone/hysentials/guis/hsplayerlist/GuiOnlineList.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,13 @@ public void renderPlayerlist(int width) {
134134
if (t < list.size()) {
135135
HysentialsSchema.User user = list.get(t);
136136
String string2 = BlockWAPIUtils.getDisplayName(user);
137-
if (bl) {
137+
if (bl && user.getSkin() != null && !user.getSkin().isEmpty()) {
138138
byte[] bytes = Base64.getDecoder().decode(user.getSkin());
139139
try {
140140
BufferedImage image = ImageIO.read(new ByteArrayInputStream(bytes));
141141
DynamicTexture dynamicTexture = new DynamicTexture(image);
142142
dynamicTexture.updateDynamicTexture();
143143
} catch (IOException e) {
144-
throw new RuntimeException(e);
145144
}
146145

147146
int x = 8;

src/main/kotlin/llc/redstone/hysentials/schema/HysentialsSchema.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class HysentialsSchema {
4141
var quests: MutableSet<Quest>?,
4242
var amountSpent: Int?,
4343
var hypixel: JsonObject,
44-
var skin: String,
44+
var skin: String?,
4545
) {
4646
companion object {
4747
fun deserialize(obj: JsonObject): User {

0 commit comments

Comments
 (0)