From 9cf4fb8c78ffe3f314ac6ee159c77dd08eb0f05c Mon Sep 17 00:00:00 2001 From: Trivernis Date: Fri, 20 Sep 2019 00:47:32 +0200 Subject: [PATCH] Fixed blockradius calculation --- .../kotlin/net/trivernis/chunkmaster/commands/CmdGenerate.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/net/trivernis/chunkmaster/commands/CmdGenerate.kt b/src/main/kotlin/net/trivernis/chunkmaster/commands/CmdGenerate.kt index cf85f5e..7b25762 100644 --- a/src/main/kotlin/net/trivernis/chunkmaster/commands/CmdGenerate.kt +++ b/src/main/kotlin/net/trivernis/chunkmaster/commands/CmdGenerate.kt @@ -100,7 +100,7 @@ class CmdGenerate(private val chunkmaster: Chunkmaster): Subcommand { number.toDouble().pow(2.0).toInt() } "blockradius" -> { - ((number*32)+1).toDouble().pow(2.0).toInt() + ((number.toDouble()+1)/8).pow(2.0).toInt() } else -> number }