mirror of
https://github.com/GTNewHorizons/gendustry.git
synced 2026-11-27 23:45:37 +00:00
Added advanced mutatron recipe + cleanup
This commit is contained in:
1 parent
7d9bbc2bd3
commit
7c0df3a294
3 files changed
+7
-2
No files matched your search
@@ -112,6 +112,12 @@ TZB
|
||||
POT => gendustry:Mutatron
|
||||
TMB
|
||||
|
||||
M = gendustry:Mutatron
|
||||
|
||||
AQA
|
||||
ZMZ => gendustry:MutatronAdv
|
||||
APA
|
||||
|
||||
AZA
|
||||
TOT => gendustry:Imprinter
|
||||
APA
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user