mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 18:55:03 -04:00
well that's lovely, why didn't that error before...
This commit is contained in:
parent
1f02180177
commit
e416ad34d0
@ -2,6 +2,7 @@ package li.cil.oc.server.driver.item
|
||||
|
||||
import li.cil.oc.Items
|
||||
import li.cil.oc.api.driver.Slot
|
||||
import li.cil.oc.api.machine.Robot
|
||||
import li.cil.oc.server.component
|
||||
import net.minecraft.item.ItemStack
|
||||
import net.minecraft.tileentity.TileEntity
|
||||
@ -9,7 +10,9 @@ import net.minecraft.tileentity.TileEntity
|
||||
object UpgradeGenerator extends Item {
|
||||
override def worksWith(stack: ItemStack) = isOneOf(stack, Items.upgradeGenerator)
|
||||
|
||||
override def createEnvironment(stack: ItemStack, container: TileEntity) = new component.UpgradeGenerator(container)
|
||||
override def createEnvironment(stack: ItemStack, container: TileEntity) = container match {
|
||||
case robot: Robot => new component.UpgradeGenerator(robot)
|
||||
}
|
||||
|
||||
override def slot(stack: ItemStack) = Slot.Upgrade
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user