This commit is contained in:
Florian Nücke 2014-01-26 19:07:52 +01:00
commit b8a448687c
6 changed files with 20 additions and 9 deletions

View File

@ -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.

View File

@ -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 {

View File

@ -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
}
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 _ =>
}
}
}

View File

@ -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))

View File

@ -13,7 +13,7 @@ trait Delegate {
val unlocalizedName: String
val showInItemList = true
var showInItemList = true
val itemId = parent.add(this)

View File

@ -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))