From e2b340ceaf9afd117eb3c77b7454a27ca8b1b77e Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Thu, 6 Jul 2023 12:48:32 +0700 Subject: [PATCH] Clarify destroy_blocks config option --- .../mc/otm/block/entity/blackhole/BlackHoleBlockEntity.kt | 2 +- src/main/kotlin/ru/dbotthepony/mc/otm/config/ServerConfig.kt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/blackhole/BlackHoleBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/blackhole/BlackHoleBlockEntity.kt index 5041fc5e5..a1e304372 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/blackhole/BlackHoleBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/blackhole/BlackHoleBlockEntity.kt @@ -287,7 +287,7 @@ class BlackHoleBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) : Mattery var iterations = 0 - while (iterations < ITERATIONS && sphereIterator!!.hasNext()) { + while (iterations < ITERATIONS && sphereIterator.hasNext()) { iterations++ val pos = sphereIterator.next() + blockPos diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/config/ServerConfig.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/config/ServerConfig.kt index f9e2c87dd..a4d6dc4bf 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/config/ServerConfig.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/config/ServerConfig.kt @@ -54,6 +54,8 @@ object ServerConfig : AbstractConfig("misc") { val DESTROY_BLOCKS: Boolean by builder .comment("Whenever singularities should destroy blocks") + .comment("Keep in mind that mobs behind blocks can cause serious server lag") + .comment("when trying to reach singularity") .define("DESTROY_BLOCKS", true) }