Skip to content

Commit

Permalink
added more vanilla options
Browse files Browse the repository at this point in the history
  • Loading branch information
dries007 committed Dec 21, 2014
1 parent 0b096e9 commit b11f91d
Show file tree
Hide file tree
Showing 5 changed files with 312 additions and 67 deletions.
Expand Up @@ -20,7 +20,7 @@
public class MineTweakerRecipeMaker public class MineTweakerRecipeMaker
{ {
public static final String MODID = "MTRM"; public static final String MODID = "MTRM";
public static final String NAME = "MineTweakerRecipeMaker"; public static final String NAME = "MineTweakerRecipeMaker";


@Mod.Instance(MODID) @Mod.Instance(MODID)
public static MineTweakerRecipeMaker instance; public static MineTweakerRecipeMaker instance;
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/net/doubledoordev/mtrm/gui/MTRMContainer.java
Expand Up @@ -4,7 +4,6 @@
import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.*; import net.minecraft.inventory.*;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.CraftingManager;
import net.minecraft.world.World; import net.minecraft.world.World;


/** /**
Expand All @@ -17,7 +16,7 @@ public class MTRMContainer extends Container
* The crafting matrix inventory (3x3). * The crafting matrix inventory (3x3).
*/ */
public InventoryCrafting craftMatrix = new InventoryCrafting(this, 3, 3); public InventoryCrafting craftMatrix = new InventoryCrafting(this, 3, 3);
public IInventory craftResult = new InventoryCraftResult(); public IInventory craftResult = new InventoryCraftResult();


public MTRMContainer(InventoryPlayer p_i1808_1_, World world) public MTRMContainer(InventoryPlayer p_i1808_1_, World world)
{ {
Expand Down Expand Up @@ -84,7 +83,7 @@ else if (mousebtn == 1)
if (stackHeld != null) if (stackHeld != null)
{ {
stackHeld = stackHeld.copy(); stackHeld = stackHeld.copy();
if (stackSlot != null && stackHeld.isItemEqual(stackSlot)) if (stackSlot != null && stackHeld.isItemEqual(stackSlot) && i == 0)
{ {
int max = stackSlot.getMaxStackSize(); int max = stackSlot.getMaxStackSize();
if (++stackSlot.stackSize > max) stackSlot.stackSize = max; if (++stackSlot.stackSize > max) stackSlot.stackSize = max;
Expand Down

0 comments on commit b11f91d

Please sign in to comment.