mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 11:48:02 -04:00
Merge branch 'master' of https://github.com/MightyPirates/OpenComputers
This commit is contained in:
commit
b8a448687c
@ -81,7 +81,7 @@ oc:gui.Chat.WarningProjectRed=Die verwendete Version von Project: Red ist nicht
|
||||
oc:gui.Error.ComponentOverflow=Zu viele Komponenten sind mit dem Computer verbunden.
|
||||
oc:gui.Error.DaylightCycle=Computer funktionieren nicht, solange die Zeit angehalten ist (Spielregel doDaylightCycle ist aus).
|
||||
oc:gui.Error.InternalError=Interner Fehler, bitte sieh in der Logdatei nach. Das ist wahrscheinlich ein Bug.
|
||||
oc:gui.Error.NoCPU=Im Computer ist keine CPU installiert.
|
||||
oc:gui.Error.NoCPU=Im Computer ist kein Hauptprozessor (CPU) installiert.
|
||||
oc:gui.Error.NoEnergy=Nicht genug Energie.
|
||||
oc:gui.Error.NoRAM=Im Computer ist kein RAM installiert.
|
||||
oc:gui.Error.OutOfMemory=Nicht genug Arbeitsspeicher.
|
||||
|
@ -113,8 +113,7 @@ cuttingWire {
|
||||
}
|
||||
acid {
|
||||
type: shapeless
|
||||
input: [bucketWater, dustEmerald, fermentedSpiderEye, slimeball]
|
||||
output: 4
|
||||
output: 0
|
||||
}
|
||||
disk {
|
||||
input: [["", plateAluminium, ""]
|
||||
@ -197,7 +196,7 @@ circuitBoard {
|
||||
}
|
||||
printedCircuitBoard {
|
||||
type:shaped
|
||||
input: [[dustTinyGold, "oc:craftingAcid"]
|
||||
input: [[dustTinyGold, {item=item.GT_Cells, subID=40}]
|
||||
["oc:craftingCircuitBoard", dustTinyGold]]
|
||||
}
|
||||
card {
|
||||
|
@ -14,6 +14,7 @@ import org.apache.commons.io.FileUtils
|
||||
import scala.Some
|
||||
import scala.collection.convert.wrapAsScala._
|
||||
import scala.collection.mutable.ArrayBuffer
|
||||
import li.cil.oc.common.item.Delegate
|
||||
|
||||
object Recipes {
|
||||
def init() {
|
||||
@ -187,8 +188,14 @@ object Recipes {
|
||||
shape += pattern.toString
|
||||
input ++= ingredients
|
||||
}
|
||||
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(output, shape ++ input: _*))
|
||||
if (input.size > 0 && output.stackSize > 0) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(output, shape ++ input: _*))
|
||||
} else {
|
||||
Items.multi.subItem(output) match {
|
||||
case Some(stack) => stack.showInItemList = false
|
||||
case _ =>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private def addShapelessRecipe(output: ItemStack, recipe: Config) {
|
||||
@ -200,6 +207,11 @@ object Recipes {
|
||||
|
||||
if (input.size > 0 && output.stackSize > 0) {
|
||||
GameRegistry.addRecipe(new ShapelessOreRecipe(output, input: _*))
|
||||
} else {
|
||||
Items.multi.subItem(output) match {
|
||||
case Some(stack) => stack.showInItemList = false
|
||||
case _ =>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -11,7 +11,7 @@ import net.minecraft.item.ItemStack
|
||||
class AbstractBusCard(val parent: Delegator) extends Delegate {
|
||||
val unlocalizedName = "AbstractBusCard"
|
||||
|
||||
override val showInItemList = Loader.isModLoaded("StargateTech2")
|
||||
showInItemList = Loader.isModLoaded("StargateTech2")
|
||||
|
||||
override def tooltipLines(stack: ItemStack, player: EntityPlayer, tooltip: util.List[String], advanced: Boolean) {
|
||||
tooltip.addAll(Tooltip.get(unlocalizedName))
|
||||
|
@ -13,7 +13,7 @@ trait Delegate {
|
||||
|
||||
val unlocalizedName: String
|
||||
|
||||
val showInItemList = true
|
||||
var showInItemList = true
|
||||
|
||||
val itemId = parent.add(this)
|
||||
|
||||
|
@ -11,7 +11,7 @@ import net.minecraft.item.ItemStack
|
||||
class IronNugget(val parent: Delegator) extends Delegate {
|
||||
val unlocalizedName = "IronNugget"
|
||||
|
||||
override val showInItemList = !Loader.isModLoaded("gregtech_addon")
|
||||
showInItemList = !Loader.isModLoaded("gregtech_addon")
|
||||
|
||||
override def tooltipLines(stack: ItemStack, player: EntityPlayer, tooltip: util.List[String], advanced: Boolean) {
|
||||
tooltip.addAll(Tooltip.get(unlocalizedName))
|
||||
|
Loading…
x
Reference in New Issue
Block a user