mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-15 18:30:27 -04:00
Fixes drivers to use proper tier getter. Closes #1291.
This commit is contained in:
parent
e0f9f04e35
commit
919e3c9397
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user