From c2cb8dd20825c8de22297a2610b5792848be80e6 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Mon, 22 Apr 2024 22:16:05 +0700 Subject: [PATCH] Make server-side entities exceptions be fatal --- .../ru/dbotthepony/kstarbound/server/world/ServerWorld.kt | 1 + src/main/kotlin/ru/dbotthepony/kstarbound/world/World.kt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerWorld.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerWorld.kt index c210857a..0962fec6 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerWorld.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerWorld.kt @@ -139,6 +139,7 @@ class ServerWorld private constructor( } clients.forEach { + LOGGER.info("Kicking ${it.client.alias()} off dying world") it.remove("World shutting down", setReturnWarp = false) it.client.enqueueWarp(WarpAlias.Return) } diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/world/World.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/world/World.kt index bd78dc68..c9c72ed0 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/world/World.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/world/World.kt @@ -338,10 +338,10 @@ abstract class World, ChunkType : Chunk