mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 02:39:48 -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 =
|
def containerSlotType: String =
|
||||||
if (data.container.isEmpty) Slot.None
|
if (data.container.isEmpty) Slot.None
|
||||||
else Option(Driver.driverFor(data.container, getClass)) match {
|
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
|
case _ => Slot.None
|
||||||
}
|
}
|
||||||
|
|
||||||
def containerSlotTier: Int =
|
def containerSlotTier: Int =
|
||||||
if (data.container.isEmpty) Tier.None
|
if (data.container.isEmpty) Tier.None
|
||||||
else Option(Driver.driverFor(data.container, getClass)) match {
|
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
|
case _ => Tier.None
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user