From 33db6d52295b2cfffc11fc5067825d3e8518b2d4 Mon Sep 17 00:00:00 2001 From: bdew Date: Mon, 28 Apr 2014 09:53:46 +0300 Subject: [PATCH] Fixed logging bee specialties lookup, changed a bunch of def's to val's in BeeSpecies --- src/net/bdew/gendustry/custom/BeeSpecies.scala | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/net/bdew/gendustry/custom/BeeSpecies.scala b/src/net/bdew/gendustry/custom/BeeSpecies.scala index aa88597..aa36033 100644 --- a/src/net/bdew/gendustry/custom/BeeSpecies.scala +++ b/src/net/bdew/gendustry/custom/BeeSpecies.scala @@ -48,13 +48,13 @@ class BeeSpecies(cfg: ConfigSection, ident: String) extends IAlleleBeeSpecies { override def getResearchBounty(world: World, researcher: String, individual: IIndividual, bountyLevel: Int) = ??? override def getResearchSuitability(itemstack: ItemStack) = ??? override def getComplexity = ??? - override def getBranch = AlleleManager.alleleRegistry.getClassification("genus." + cfg.getString("Branch")) - override def getAuthority = cfg.getString("Authority") - override def getBinomial = cfg.getString("Binominal") - override def getDescription = Misc.toLocal("gendustry.bee.species." + ident + ".description") + override val getBranch = AlleleManager.alleleRegistry.getClassification("genus." + cfg.getString("Branch")) + override val getAuthority = cfg.getString("Authority") + override val getBinomial = cfg.getString("Binominal") + override val getDescription = Misc.toLocal("gendustry.bee.species." + ident + ".description") // IAlleleBeeSpecies - override def getEntityTexture = "textures/entity/bees/honeyBee.png" + override val getEntityTexture = "textures/entity/bees/honeyBee.png" @SideOnly(Side.CLIENT) override def getIcon(kind: EnumBeeType, renderPass: Int) = BeeIconProvider.icons(kind.ordinal())(renderPass) @@ -74,9 +74,9 @@ class BeeSpecies(cfg: ConfigSection, ident: String) extends IAlleleBeeSpecies { Gendustry.logInfo("Resolving specialty list for bee '%s'...", ident) override val getSpecialty = prepareLootList("Specialty") - getProducts.asScala.foreach(x => Gendustry.logInfo(" [%d%%] %s", x._2, x._1)) + getSpecialty.asScala.foreach(x => Gendustry.logInfo(" [%d%%] %s", x._2, x._1)) - override def isNocturnal = cfg.getBoolean("Nocturnal") + override val isNocturnal = cfg.getBoolean("Nocturnal") override val getRoot = AlleleManager.alleleRegistry.getSpeciesRoot("rootBees").asInstanceOf[IBeeRoot] // Internal stuff