From 7c0df3a2947023fc98036d4617cfe3bcc574de46 Mon Sep 17 00:00:00 2001 From: bdew Date: Tue, 31 Dec 2013 16:49:39 +0200 Subject: [PATCH] Added advanced mutatron recipe + cleanup --- resources/assets/gendustry/gendustry-recipes.cfg | 6 ++++++ .../machines/advmutatron/ContainerMutatronAdv.scala | 1 - .../bdew/gendustry/machines/advmutatron/SlotSelector.scala | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/resources/assets/gendustry/gendustry-recipes.cfg b/resources/assets/gendustry/gendustry-recipes.cfg index fe10585..19d38cf 100644 --- a/resources/assets/gendustry/gendustry-recipes.cfg +++ b/resources/assets/gendustry/gendustry-recipes.cfg @@ -112,6 +112,12 @@ TZB POT => gendustry:Mutatron TMB +M = gendustry:Mutatron + +AQA +ZMZ => gendustry:MutatronAdv +APA + AZA TOT => gendustry:Imprinter APA diff --git a/src/net/bdew/gendustry/machines/advmutatron/ContainerMutatronAdv.scala b/src/net/bdew/gendustry/machines/advmutatron/ContainerMutatronAdv.scala index 9cfa03e..58eecd2 100644 --- a/src/net/bdew/gendustry/machines/advmutatron/ContainerMutatronAdv.scala +++ b/src/net/bdew/gendustry/machines/advmutatron/ContainerMutatronAdv.scala @@ -13,7 +13,6 @@ import net.bdew.lib.gui.{BaseContainer, SlotValidating} import net.minecraft.entity.player.EntityPlayer import net.bdew.lib.data.base.ContainerDataSlots import net.minecraft.item.ItemStack -import net.minecraft.inventory.Slot class ContainerMutatronAdv(val te: TileMutatronAdv, player: EntityPlayer) extends BaseContainer(te) with ContainerDataSlots { lazy val dataSource = te diff --git a/src/net/bdew/gendustry/machines/advmutatron/SlotSelector.scala b/src/net/bdew/gendustry/machines/advmutatron/SlotSelector.scala index 0b6d5e4..006c918 100644 --- a/src/net/bdew/gendustry/machines/advmutatron/SlotSelector.scala +++ b/src/net/bdew/gendustry/machines/advmutatron/SlotSelector.scala @@ -16,7 +16,7 @@ import net.minecraft.item.ItemStack class SlotSelector(inv: TileMutatronAdv, slot: Int, x: Int, y: Int) extends Slot(inv, slot, x, y) with SlotClickable { def onClick(button: Int, mods: Int, player: EntityPlayer): ItemStack = { - if (button == 0 && mods ==0 && !inv.worldObj.isRemote && !inv.isWorking && getHasStack) { + if (button == 0 && mods == 0 && !inv.worldObj.isRemote && !inv.isWorking && getHasStack) { inv.selectedMutation := slotNumber } return null