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 a838aed26..91d485cc1 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 @@ -278,7 +278,7 @@ class BlackHoleBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) : Mattery this.mass += HAWKING_MASS_LOSE_STEP } - if (gravitationStrength > 0.4) { + if (ServerConfig.Blackhole.DESTROY_BLOCKS && gravitationStrength > 0.4) { val sphere = getSphericalBlockPositions((gravitationStrength * 12.0).roundToInt()) if (sphere.size != lastSphereSizeOuter) { 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 03d7d1c0e..f9e2c87dd 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/config/ServerConfig.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/config/ServerConfig.kt @@ -51,6 +51,10 @@ object ServerConfig : AbstractConfig("misc") { val BOSS_FORCE_MULTIPLIER: Double by builder .comment("Percentage of gravity force experienced by bosses (forge:bosses tag) from Singularities") .defineInRange("BOSS_FORCE_MULTIPLIER", 0.4, 0.0, Float.MAX_VALUE.toDouble()) + + val DESTROY_BLOCKS: Boolean by builder + .comment("Whenever singularities should destroy blocks") + .define("DESTROY_BLOCKS", true) } init {