Merge branch 'master' of github.com:MightyPirates/OpenComputers into master-MC1.7.10

This commit is contained in:
Florian Nücke 2014-08-29 21:50:50 +02:00
commit f1e47015b3
3 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import net.minecraft.item.ItemStack
object Slot {
val None = "none"
val Any = "any"
val Card = "card"
val ComponentBus = "component_bus"
val Container = "container"

View File

@ -86,7 +86,7 @@ abstract class Player(val playerInventory: InventoryPlayer, val otherInventory:
}
}
def addSlotToContainer(x: Int, y: Int, slot: String = common.Slot.None, tier: Int = common.Tier.Any) {
def addSlotToContainer(x: Int, y: Int, slot: String = common.Slot.Any, tier: Int = common.Tier.Any) {
val index = inventorySlots.size
addSlotToContainer(new StaticComponentSlot(this, otherInventory, index, x, y, slot, tier))
}

View File

@ -13,7 +13,7 @@ class RobotAssembler(playerInventory: InventoryPlayer, val assembler: tileentity
// Computer case.
{
val index = inventorySlots.size
addSlotToContainer(new StaticComponentSlot(this, otherInventory, index, 12, 12, common.Slot.None, common.Tier.Any) {
addSlotToContainer(new StaticComponentSlot(this, otherInventory, index, 12, 12, common.Slot.Any, common.Tier.Any) {
@SideOnly(Side.CLIENT) override
def func_111238_b() = !isAssembling && super.func_111238_b()