[fix] Crash when servers don't return a Server Brand

Signed-off-by: Dominika <sokolov.dominika@gmail.com>
This commit is contained in:
Dominika 2020-12-08 14:57:25 -05:00
parent 0ab2cf054c
commit 6820df847c
No known key found for this signature in database
GPG Key ID: B4A5A6DCA70F861F
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ object InfoOverlay : Module() {
if (speed.value) addContent("${calcSpeed(decimalPlaces.value)}", speedUnit.value.displayName)
if (timerSpeed.value) addContent("${round(50f / mc.timer.tickLength, decimalPlaces.value)}", "x")
if (ping.value) addContent("${InfoCalculator.ping()}", "ms")
if (server.value) addContent(mc.player.serverBrand)
if (server.value) addContent(mc.player.serverBrand ?: "Unknown Server")
if (durability.value) addContent("${InfoCalculator.heldItemDurability()}", "dura")
if (biome.value) addContent(mc.world.getBiome(mc.player.position).biomeName, "biome")
if (memory.value) addContent("${InfoCalculator.memory()}", "MB")