mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-15 10:21:45 -04:00
tablet card support fixed
This commit is contained in:
parent
ef97a06305
commit
7b1867a888
@ -372,14 +372,14 @@ class TabletWrapper(var stack: ItemStack, var player: EntityPlayer) extends Comp
|
||||
def containerSlotType: String =
|
||||
if (data.container.isEmpty) Slot.None
|
||||
else Option(Driver.driverFor(data.container, getClass)) match {
|
||||
case Some(driver: Container) => driver.providedSlot(stack)
|
||||
case Some(driver: Container) => driver.providedSlot(data.container)
|
||||
case _ => Slot.None
|
||||
}
|
||||
|
||||
def containerSlotTier: Int =
|
||||
if (data.container.isEmpty) Tier.None
|
||||
else Option(Driver.driverFor(data.container, getClass)) match {
|
||||
case Some(driver: Container) => driver.providedTier(stack)
|
||||
case Some(driver: Container) => driver.providedTier(data.container)
|
||||
case _ => Tier.None
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user