Skip to content

Commit 3c353cd

Browse files
committed
Fix null pointer in fancyRendering and update Gradle build
1 parent 9eb278a commit 3c353cd

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

build.gradle.kts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ dependencies {
101101
// Adds the OneConfig library, so we can develop with it.
102102
modCompileOnly("cc.polyfrost:oneconfig-$platform:0.2.2-alpha+")
103103

104-
implementation("org.slick2d:slick2d-core:1.0.2") {
104+
shade("org.slick2d:slick2d-core:1.0.2") {
105105
exclude(module = "lwjgl")
106106
}
107-
implementation("org.json:json:20231013")
108-
implementation("com.neovisionaries:nv-websocket-client:2.14")
109-
implementation("net.hypixel:mod-api:0.4.0")
110-
implementation("org.bitbucket.cowwoc:diff-match-patch:1.2")
107+
shade("org.json:json:20231013")
108+
shade("com.neovisionaries:nv-websocket-client:2.14")
109+
shade("net.hypixel:mod-api:0.4.0")
110+
shade("org.bitbucket.cowwoc:diff-match-patch:1.2")
111111

112112
modRuntimeOnly("me.djtheredstoner:DevAuth-${if (platform.isFabric) "fabric" else if (platform.isLegacyForge) "forge-legacy" else "forge-latest"}:1.2.0")
113113

@@ -205,6 +205,6 @@ tasks {
205205
}
206206
dependsOn(shadowJar)
207207
archiveClassifier.set("")
208-
enabled = false
208+
enabled = true
209209
}
210210
}

src/main/java/llc/redstone/hysentials/config/hysentialmods/FormattingConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ public static RankStuff getRank(String type) {
321321
}
322322

323323
public static boolean fancyRendering() {
324+
if (Hysentials.INSTANCE == null || Hysentials.INSTANCE.getConfig() == null || Hysentials.INSTANCE.getConfig().formattingConfig == null) return false;
324325
return (futuristicRanks || hexColors) && Hysentials.INSTANCE.getConfig().formattingConfig.enabled;
325326
}
326327

0 commit comments

Comments
 (0)