From fd3caf5d21d2d91107e639f08d01805add917883 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sat, 15 Mar 2025 10:12:43 +0700 Subject: [PATCH] Revert black hole random changes --- .../mc/otm/block/entity/blackhole/BlackHoleBlockEntity.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 c4c622f79..0564d0670 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 @@ -216,15 +216,15 @@ class BlackHoleBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) : Mattery //no way null malware reference val tempLevel = level - if (tempLevel?.random!!.nextFloat() < 0.8f) { + if (tempLevel?.otmRandom!!.nextFloat() < 0.8f) { val size = gravitationStrength.pow(0.5) val eventHorizonRadius = size / 2 - val spawnRadius = 4 + eventHorizonRadius * (1.2 + tempLevel.random.nextDouble() * 0.6) + val spawnRadius = 4 + eventHorizonRadius * (1.2 + tempLevel.otmRandom.nextDouble() * 0.6) - val theta = tempLevel.random.nextDouble() * Math.PI * 2 - val phi = tempLevel.random.nextDouble() * Math.PI - Math.PI / 2 + val theta = tempLevel.otmRandom.nextDouble() * Math.PI * 2 + val phi = tempLevel.otmRandom.nextDouble() * Math.PI - Math.PI / 2 //мугек я не ощущаю центр //хз нужно настроить