From 0dc3c996be8878aea456671aa91f7954ad8902d3 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Mon, 29 Apr 2024 17:38:31 +0700 Subject: [PATCH] How? --- .../ru/dbotthepony/kstarbound/server/world/ServerUniverse.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerUniverse.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerUniverse.kt index a0422a94..611b7fa7 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerUniverse.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerUniverse.kt @@ -304,7 +304,7 @@ class ServerUniverse(folder: File? = null) : Universe(), Closeable { if (pos !in chunk.systems) return null - return loadSystem(pos)!!.await() + return loadSystem(pos)?.await() } private fun getSystem(pos: Vector3i): CompletableFuture {