Fixes drivers to use proper tier getter. Closes #1291.

This commit is contained in:
Florian Nücke 2015-07-12 12:21:09 +02:00
parent e0f9f04e35
commit 919e3c9397
3 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ object DriverAPU extends DriverCPU with HostAware with EnvironmentAware {
override def cpuTier(stack: ItemStack) =
Delegator.subItem(stack) match {
case Some(apu: common.item.APU) => apu.tier
case Some(apu: common.item.APU) => apu.cpuTier
case _ => Tier.One
}

View File

@ -33,7 +33,7 @@ abstract class DriverCPU extends Item with Processor {
def cpuTier(stack: ItemStack): Int =
Delegator.subItem(stack) match {
case Some(cpu: item.CPU) => cpu.tier
case Some(cpu: item.CPU) => cpu.cpuTier
case _ => Tier.One
}

View File

@ -30,7 +30,7 @@ object DriverGraphicsCard extends Item with HostAware with EnvironmentAware {
override def tier(stack: ItemStack) =
Delegator.subItem(stack) match {
case Some(gpu: common.item.GraphicsCard) => gpu.tier
case Some(gpu: common.item.GraphicsCard) => gpu.gpuTier
case _ => Tier.One
}