Skip to content

Commit 1a5cb92

Browse files
committed
Misc: Ignore unknown json keys
1 parent 7b43a3b commit 1a5cb92

File tree

1 file changed

+4
-1
lines changed
  • src/main/kotlin/com/chattriggers/ctjs

1 file changed

+4
-1
lines changed

src/main/kotlin/com/chattriggers/ctjs/CTJS.kt

+4-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ class CTJS : ClientModInitializer {
7474
internal val sounds = mutableListOf<Sound>()
7575
internal val isDevelopment = FabricLoader.getInstance().isDevelopmentEnvironment
7676

77-
internal val json = Json { useAlternativeNames = true }
77+
internal val json = Json {
78+
useAlternativeNames = true
79+
ignoreUnknownKeys = true
80+
}
7881

7982
@JvmOverloads
8083
internal fun makeWebRequest(url: String, userAgent: String? = "Mozilla/5.0 (ChatTriggers)"): URLConnection =

0 commit comments

Comments
 (0)