if (tile1 == null || !(tile1 instanceof TileTransvector)) {
setY(par1ItemStack, -1);
par2EntityPlayer.addChatMessage(new ChatComponentTranslation("ttmisc.connector.notpresent"));
} else {
TileTransvector trans = (TileTransvector) tile1;
if (tile != null && tile1 instanceof TileTransvectorInterface && tile instanceof TileTransvectorInterface) {
par2EntityPlayer.addChatMessage(new ChatComponentTranslation("ttmisc.connector.interffail"));
return true;
}
if (Math.abs(x - par4) > trans.getMaxDistance() || Math.abs(y - par5) > trans.getMaxDistance() || Math.abs(z - par6) > trans.getMaxDistance()) {
par2EntityPlayer.addChatMessage(new ChatComponentTranslation("ttmisc.connector.toofar"));
return true;
}
trans.x = par4;