From a8fecd9203698807bdb6ba35c65dfbf146f42953 Mon Sep 17 00:00:00 2001 From: bdew Date: Mon, 11 May 2015 11:27:14 +0300 Subject: [PATCH] REALLY fixed custom bees product chances, i hope --- src/net/bdew/gendustry/custom/BeeSpecies.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/bdew/gendustry/custom/BeeSpecies.scala b/src/net/bdew/gendustry/custom/BeeSpecies.scala index 5004ee2..fbe9742 100644 --- a/src/net/bdew/gendustry/custom/BeeSpecies.scala +++ b/src/net/bdew/gendustry/custom/BeeSpecies.scala @@ -83,8 +83,8 @@ class BeeSpecies(cfg: ConfigSection, ident: String) extends IAlleleBeeSpecies { val specialty = prepareLootList("Specialty") specialty.foreach(x => Gendustry.logDebug(" [%.1f%%] %s", x._2, x._1)) - override val getProducts = products.map(x => x._1 -> Int.box(x._2.round * 100)).asJava - override val getSpecialty = specialty.map(x => x._1 -> Int.box(x._2.round * 100)).asJava + override val getProducts = products.map(x => x._1 -> Int.box((x._2 * 100).round)).asJava + override val getSpecialty = specialty.map(x => x._1 -> Int.box((x._2 * 100).round)).asJava override val isNocturnal = cfg.getBoolean("Nocturnal") override val getRoot = AlleleManager.alleleRegistry.getSpeciesRoot("rootBees").asInstanceOf[IBeeRoot]