Fixed create inputting creates on double click
This commit is contained in:
parent
f3c114af0f
commit
50d359f048
1 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue