From 50d359f0489d9a79d63e37f25652dc4992733ab4 Mon Sep 17 00:00:00 2001 From: DarkGuardsman Date: Sat, 21 Sep 2013 18:35:16 -0400 Subject: [PATCH] Fixed create inputting creates on double click --- .../dark/assembly/common/machine/BlockCrate.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/minecraft/dark/assembly/common/machine/BlockCrate.java b/src/minecraft/dark/assembly/common/machine/BlockCrate.java index 2d5a7e16..d48a083d 100644 --- a/src/minecraft/dark/assembly/common/machine/BlockCrate.java +++ b/src/minecraft/dark/assembly/common/machine/BlockCrate.java @@ -20,7 +20,7 @@ import dark.core.registration.ModObjectRegistry.BlockBuildData; /** A block that allows the placement of mass amount of a specific item within it. It will be allowed * to go on Conveyor Belts - * + * * @author DarkGuardsman */ public class BlockCrate extends BlockAssembly { @@ -213,7 +213,7 @@ public class BlockCrate extends BlockAssembly } /** Inserts all items of the same type this player has into the crate. - * + * * @return True on success */ public boolean insertAllItems(TileEntityCrate tileEntity, EntityPlayer player) { @@ -229,7 +229,7 @@ public class BlockCrate extends BlockAssembly requestStack = player.getCurrentEquippedItem(); } - if (requestStack != null) + if (requestStack != null && requestStack.itemID != this.blockID) { boolean success = false; @@ -258,7 +258,7 @@ public class BlockCrate extends BlockAssembly } /** Ejects and item out of the crate and spawn it under the player entity. - * + * * @param tileEntity * @param player * @param requestSize - The maximum stack size to take out. Default should be 64. @@ -310,7 +310,7 @@ public class BlockCrate extends BlockAssembly } /** Puts an itemStack into the crate. - * + * * @param tileEntity * @param itemStack */ public static ItemStack addStackToCrate(TileEntityCrate tileEntity, ItemStack itemStack)