Removed break on rotation

This commit is contained in:
Rseifert 2013-02-07 01:50:36 -05:00
parent 65c7a3760a
commit cb854bebda
2 changed files with 1 additions and 28 deletions

View file

@ -15,7 +15,7 @@ import universalelectricity.prefab.network.PacketManager;
*/ */
public abstract class TileEntityAssemblyNetwork extends TIC2Receiver public abstract class TileEntityAssemblyNetwork extends TIC2Receiver
{ {
public boolean debugMode = false; public boolean debugMode = true;
/** /**
* The range in which power can be transfered. * The range in which power can be transfered.
*/ */

View file

@ -122,33 +122,6 @@ public class TileEntityArmbot extends TileEntityAssemblyNetwork implements IMult
{ {
if (FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER) if (FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER)
{ {
/**
* Break the block if the hand hits a solid block.
*/
Block block = Block.blocksList[handPosition.getBlockID(this.worldObj)];
if (block != null)
{
if (Block.isNormalCube(block.blockID) && block.getBlockHardness(this.worldObj, handPosition.intX(), handPosition.intY(), handPosition.intZ()) != -1)
{
TileEntity tileEntity = this.getHandPosition().getTileEntity(this.worldObj);
if (tileEntity == null)
{
if (!this.worldObj.isRemote)
{
block.dropBlockAsItem(this.worldObj, handPosition.intX(), handPosition.intY(), handPosition.intZ(), handPosition.getBlockMetadata(this.worldObj), 0);
}
handPosition.setBlockWithNotify(this.worldObj, 0);
}
else if (!(tileEntity instanceof IArmbotUseable))
{
handPosition.setBlockWithNotify(this.worldObj, 0);
}
}
}
if (this.disk == null && this.computersAttached == 0) if (this.disk == null && this.computersAttached == 0)
{ {
this.commandManager.clear(); this.commandManager.clear();