Revert black hole random changes
This commit is contained in:
parent
05fa437fa4
commit
fd3caf5d21
@ -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
|
||||
|
||||
//мугек я не ощущаю центр
|
||||
//хз нужно настроить
|
||||
|
Loading…
Reference in New Issue
Block a user